home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / Documentation / Archiver Component < prev    next >
MacBinary  |  1994-04-21  |  157.9 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Wed Apr 20 09:17:18 1994, modified Thu Apr 21 08:05:24 1994, creator 'HLX2', type 'ONLN', 150040 bytes "Archiver Component" , at 0x24a98 11350 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 41 72 63 68 69 76 | 65 72 20 43 6f 6d 70 6f |..Archiv|er Compo|
|00000010| 6e 65 6e 74 00 00 00 00 | 00 00 00 00 00 00 00 00 |nent....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 02 4a 18 00 | 00 2c 56 a9 da db de a9 |.....J..|.,V.....|
|00000060| dc 1c 84 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 1d 17 00 00 |........|........|
|00000080| 41 72 63 68 69 76 65 72 | 73 20 43 6f 6d 70 6f 6e |Archiver|s Compon|
|00000090| 65 6e 74 0d 0d 49 6e 74 | 72 6f 64 75 63 74 69 6f |ent..Int|roductio|
|000000a0| 6e 0d 54 68 65 20 41 72 | 63 68 69 76 65 72 73 20 |n.The Ar|chivers |
|000000b0| 63 6f 6d 70 6f 6e 65 6e | 74 20 73 61 76 65 73 20 |componen|t saves |
|000000c0| 61 6e 64 20 72 65 73 74 | 6f 72 65 73 20 64 79 6e |and rest|ores dyn|
|000000d0| 61 6d 69 63 20 61 6e 64 | 20 73 74 61 74 69 63 20 |amic and| static |
|000000e0| 6f 62 6a 65 63 74 73 20 | 69 6e 20 74 68 65 69 72 |objects |in their|
|000000f0| 20 63 75 72 72 65 6e 74 | 20 73 74 61 74 65 73 2c | current| states,|
|00000100| 20 62 79 20 70 65 72 66 | 6f 72 6d 69 6e 67 20 74 | by perf|orming t|
|00000110| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 74 61 73 |he follo|wing tas|
|00000120| 6b 73 3a 0d a5 09 41 72 | 63 68 69 76 65 73 20 6f |ks:...Ar|chives o|
|00000130| 62 6a 65 63 74 73 20 69 | 6e 73 74 61 6e 74 69 61 |bjects i|nstantia|
|00000140| 74 65 64 20 66 72 6f 6d | 20 73 74 61 74 69 63 20 |ted from| static |
|00000150| 63 6c 61 73 73 65 73 20 | 62 79 20 76 61 6c 75 65 |classes |by value|
|00000160| 20 61 6e 64 20 62 79 20 | 72 65 66 65 72 65 6e 63 | and by |referenc|
|00000170| 65 2e 0d a5 09 41 72 63 | 68 69 76 65 73 20 6f 62 |e....Arc|hives ob|
|00000180| 6a 65 63 74 73 20 69 6e | 73 74 61 6e 74 69 61 74 |jects in|stantiat|
|00000190| 65 64 20 66 72 6f 6d 20 | 64 79 6e 61 6d 69 63 20 |ed from |dynamic |
|000001a0| 4f 50 46 20 63 6c 61 73 | 73 65 73 2e 0d a5 09 41 |OPF clas|ses....A|
|000001b0| 72 63 68 69 76 65 73 20 | 73 74 61 74 69 63 20 61 |rchives |static a|
|000001c0| 6e 64 20 64 79 6e 61 6d | 69 63 20 6f 62 6a 65 63 |nd dynam|ic objec|
|000001d0| 74 73 20 6f 66 20 79 6f | 75 72 20 6f 77 6e 20 75 |ts of yo|ur own u|
|000001e0| 73 65 72 20 74 79 70 65 | 0d a5 09 41 72 63 68 69 |ser type|...Archi|
|000001f0| 76 65 73 20 6f 62 6a 65 | 63 74 73 20 69 6e 73 74 |ves obje|cts inst|
|00000200| 61 6e 74 69 61 74 65 64 | 20 66 72 6f 6d 20 63 6c |antiated| from cl|
|00000210| 61 73 73 65 73 20 61 63 | 71 75 69 72 65 64 20 66 |asses ac|quired f|
|00000220| 72 6f 6d 20 74 68 69 72 | 64 2d 70 61 72 74 79 20 |rom thir|d-party |
|00000230| 73 6f 75 72 63 65 73 2e | 0d a5 09 50 72 6f 76 69 |sources.|...Provi|
|00000240| 64 65 73 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 |des supp|ort for |
|00000250| 6f 62 6a 65 63 74 20 76 | 65 72 73 69 6f 6e 69 6e |object v|ersionin|
|00000260| 67 2e 0d 4e 6f 74 65 0d | 41 20 64 79 6e 61 6d 69 |g..Note.|A dynami|
|00000270| 63 20 63 6c 61 73 73 20 | 65 69 74 68 65 72 20 69 |c class |either i|
|00000280| 6e 68 65 72 69 74 73 20 | 6f 72 20 64 65 66 69 6e |nherits |or defin|
|00000290| 65 73 20 61 74 20 6c 65 | 61 73 74 20 6f 6e 65 20 |es at le|ast one |
|000002a0| 76 69 72 74 75 61 6c 20 | 6d 65 74 68 6f 64 2e 20 |virtual |method. |
|000002b0| 41 20 73 74 61 74 69 63 | 20 63 6c 61 73 73 20 64 |A static| class d|
|000002c0| 6f 65 73 20 6e 6f 74 20 | 69 6e 68 65 72 69 74 20 |oes not |inherit |
|000002d0| 6f 72 20 64 65 66 69 6e | 65 20 61 6e 79 20 76 69 |or defin|e any vi|
|000002e0| 72 74 75 61 6c 20 6d 65 | 74 68 6f 64 73 2e 0d 0d |rtual me|thods...|
|000002f0| 4f 50 46 20 63 6f 6d 70 | 6f 6e 65 6e 74 73 20 75 |OPF comp|onents u|
|00000300| 73 65 20 74 68 65 20 41 | 72 63 68 69 76 65 72 73 |se the A|rchivers|
|00000310| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 74 6f 20 61 72 | compone|nt to ar|
|00000320| 63 68 69 76 65 20 6f 62 | 6a 65 63 74 73 20 6f 66 |chive ob|jects of|
|00000330| 20 63 6c 61 73 73 65 73 | 20 74 68 65 79 20 64 65 | classes| they de|
|00000340| 66 69 6e 65 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |fine. Fo|r exampl|
|00000350| 65 2c 20 74 68 65 20 53 | 74 72 69 6e 67 73 20 63 |e, the S|trings c|
|00000360| 6f 6d 70 6f 6e 65 6e 74 | 20 70 72 6f 76 69 64 65 |omponent| provide|
|00000370| 73 20 61 72 63 68 69 76 | 69 6e 67 20 66 6f 72 20 |s archiv|ing for |
|00000380| 74 68 65 20 63 6f 6e 63 | 72 65 74 65 20 73 74 72 |the conc|rete str|
|00000390| 69 6e 67 20 63 6c 61 73 | 73 65 73 20 64 65 66 69 |ing clas|ses defi|
|000003a0| 6e 65 64 20 62 79 20 4f | 50 46 2e 0d 50 61 72 74 |ned by O|PF..Part|
|000003b0| 73 20 79 6f 75 20 64 65 | 76 65 6c 6f 70 20 6d 61 |s you de|velop ma|
|000003c0| 79 20 75 73 65 20 74 68 | 65 20 61 72 63 68 69 76 |y use th|e archiv|
|000003d0| 69 6e 67 20 73 75 70 70 | 6f 72 74 20 64 65 73 63 |ing supp|ort desc|
|000003e0| 72 69 62 65 64 20 68 65 | 72 65 20 74 6f 20 61 72 |ribed he|re to ar|
|000003f0| 63 68 69 76 65 20 6f 62 | 6a 65 63 74 73 20 6f 66 |chive ob|jects of|
|00000400| 20 63 6c 61 73 73 65 73 | 20 79 6f 75 20 64 65 66 | classes| you def|
|00000410| 69 6e 65 2e 0d 41 72 63 | 68 69 76 65 72 73 20 61 |ine..Arc|hivers a|
|00000420| 6e 64 20 53 74 72 65 61 | 6d 73 20 63 6f 6d 70 6f |nd Strea|ms compo|
|00000430| 6e 65 6e 74 73 0d 41 72 | 63 68 69 76 65 72 73 20 |nents.Ar|chivers |
|00000440| 77 72 69 74 65 20 65 6e | 74 69 72 65 20 6f 62 6a |write en|tire obj|
|00000450| 65 63 74 73 20 74 6f 20 | 61 20 73 69 6e 6b 2c 20 |ects to |a sink, |
|00000460| 77 68 65 72 65 61 73 20 | 53 74 72 65 61 6d 73 20 |whereas |Streams |
|00000470| 77 72 69 74 65 20 6f 6e | 6c 79 20 64 61 74 61 2e |write on|ly data.|
|00000480| 20 55 73 65 20 61 6e 20 | 61 72 63 68 69 76 65 72 | Use an |archiver|
|00000490| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 61 20 73 74 | instead| of a st|
|000004a0| 72 65 61 6d 20 77 68 65 | 6e 20 79 6f 75 20 77 72 |ream whe|n you wr|
|000004b0| 69 74 65 20 6f 62 6a 65 | 63 74 73 20 6f 75 74 20 |ite obje|cts out |
|000004c0| 74 6f 20 64 69 73 6b 2e | 20 59 6f 75 20 63 61 6e |to disk.| You can|
|000004d0| 20 72 65 70 6c 61 63 65 | 20 61 20 73 74 72 65 61 | replace| a strea|
|000004e0| 6d 20 77 69 74 68 20 61 | 6e 20 61 72 63 68 69 76 |m with a|n archiv|
|000004f0| 65 72 20 69 6e 20 61 20 | 73 74 72 6f 6e 67 6c 79 |er in a |strongly|
|00000500| 20 6f 62 6a 65 63 74 2d | 6f 72 69 65 6e 74 65 64 | object-|oriented|
|00000510| 20 70 72 6f 67 72 61 6d | 2e 0d 41 72 63 68 69 76 | program|..Archiv|
|00000520| 69 6e 67 20 75 73 65 72 | 2d 74 79 70 65 64 20 6f |ing user|-typed o|
|00000530| 62 6a 65 63 74 73 0d 54 | 68 65 20 61 72 63 68 69 |bjects.T|he archi|
|00000540| 76 65 72 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 70 72 |ver comp|onent pr|
|00000550| 6f 76 69 64 65 73 20 67 | 6c 6f 62 61 6c 20 66 72 |ovides g|lobal fr|
|00000560| 69 65 6e 64 20 3c 3c 20 | 61 6e 64 20 3e 3e 20 6f |iend << |and >> o|
|00000570| 70 65 72 61 74 6f 72 20 | 66 75 6e 63 74 69 6f 6e |perator |function|
|00000580| 20 74 65 6d 70 6c 61 74 | 65 73 20 66 6f 72 20 61 | templat|es for a|
|00000590| 72 63 68 69 76 69 6e 67 | 20 64 79 6e 61 6d 69 63 |rchiving| dynamic|
|000005a0| 20 63 6c 61 73 73 65 73 | 2e 20 54 6f 20 72 65 61 | classes|. To rea|
|000005b0| 64 20 61 6e 64 20 77 72 | 69 74 65 20 6f 62 6a 65 |d and wr|ite obje|
|000005c0| 63 74 73 20 6f 66 20 79 | 6f 75 72 20 74 79 70 65 |cts of y|our type|
|000005d0| 2c 20 70 61 73 73 20 79 | 6f 75 72 20 75 73 65 72 |, pass y|our user|
|000005e0| 2d 74 79 70 65 64 20 6f | 62 6a 65 63 74 20 74 6f |-typed o|bject to|
|000005f0| 20 74 68 65 20 6f 70 65 | 72 61 74 6f 72 20 66 75 | the ope|rator fu|
|00000600| 6e 63 74 69 6f 6e 20 77 | 68 65 6e 20 79 6f 75 20 |nction w|hen you |
|00000610| 63 61 6c 6c 20 69 74 2e | 0d 41 72 63 68 69 76 65 |call it.|.Archive|
|00000620| 72 20 43 6f 6d 70 6f 6e | 65 6e 74 20 4f 76 65 72 |r Compon|ent Over|
|00000630| 76 69 65 77 0d 54 68 65 | 20 41 72 63 68 69 76 65 |view.The| Archive|
|00000640| 72 73 20 63 6f 6d 70 6f | 6e 65 6e 74 20 69 6e 63 |rs compo|nent inc|
|00000650| 6c 75 64 65 73 20 66 69 | 76 65 20 63 6c 61 73 73 |ludes fi|ve class|
|00000660| 65 73 2c 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 34 |es, cont|aining 4|
|00000670| 35 20 6d 65 74 68 6f 64 | 73 2e 20 43 6c 61 73 73 |5 method|s. Class|
|00000680| 65 73 20 61 72 65 20 6c | 6f 6f 73 65 6c 79 20 63 |es are l|oosely c|
|00000690| 6f 75 70 6c 65 64 2c 20 | 74 6f 20 70 72 6f 76 69 |oupled, |to provi|
|000006a0| 64 65 20 73 69 6d 70 6c | 65 20 61 63 63 65 73 73 |de simpl|e access|
|000006b0| 20 74 6f 20 63 6c 61 73 | 73 65 73 20 69 6e 20 6f | to clas|ses in o|
|000006c0| 74 68 65 72 20 63 6f 6d | 70 6f 6e 65 6e 74 73 2e |ther com|ponents.|
|000006d0| 20 46 57 5f 43 52 65 61 | 64 61 62 6c 65 41 72 63 | FW_CRea|dableArc|
|000006e0| 68 69 76 65 20 61 6e 64 | 20 46 57 5f 43 57 72 69 |hive and| FW_CWri|
|000006f0| 74 61 62 6c 65 41 72 63 | 68 69 76 65 20 69 6e 68 |tableArc|hive inh|
|00000700| 65 72 69 74 20 70 72 6f | 74 6f 63 6f 6c 20 66 72 |erit pro|tocol fr|
|00000710| 6f 6d 20 46 57 5f 43 52 | 65 61 64 61 62 6c 65 2d |om FW_CR|eadable-|
|00000720| 53 74 72 65 61 6d 20 61 | 6e 64 20 46 57 5f 43 57 |Stream a|nd FW_CW|
|00000730| 72 69 74 61 62 6c 65 53 | 74 72 65 61 6d 2c 20 77 |ritableS|tream, w|
|00000740| 68 69 63 68 20 61 72 65 | 20 70 61 72 74 20 6f 66 |hich are| part of|
|00000750| 20 74 68 65 20 53 74 72 | 65 61 6d 73 20 63 6f 6d | the Str|eams com|
|00000760| 70 6f 6e 65 6e 74 2e 20 | 54 68 69 73 20 63 6f 6d |ponent. |This com|
|00000770| 70 6f 6e 65 6e 74 20 61 | 6c 73 6f 20 63 6f 6e 74 |ponent a|lso cont|
|00000780| 61 69 6e 73 20 73 65 76 | 65 72 61 6c 20 6d 61 63 |ains sev|eral mac|
|00000790| 72 6f 73 20 77 68 69 63 | 68 20 69 6e 73 74 61 6e |ros whic|h instan|
|000007a0| 74 69 61 74 65 20 61 72 | 63 68 69 76 65 72 20 6f |tiate ar|chiver o|
|000007b0| 62 6a 65 63 74 73 20 66 | 6f 72 20 79 6f 75 20 75 |bjects f|or you u|
|000007c0| 6e 64 65 72 20 6d 6f 73 | 74 20 63 69 72 63 75 6d |nder mos|t circum|
|000007d0| 73 74 61 6e 63 65 73 2e | 0d 44 69 72 65 63 74 6f |stances.|.Directo|
|000007e0| 72 79 0d 46 57 41 72 63 | 68 69 76 0d 48 65 72 69 |ry.FWArc|hiv.Heri|
|000007f0| 74 61 67 65 0d 46 57 5f | 43 44 79 6e 61 6d 69 63 |tage.FW_|CDynamic|
|00000800| 41 72 63 68 69 76 65 72 | 09 32 31 0d 46 57 5f 43 |Archiver|.21.FW_C|
|00000810| 4f 62 6a 65 63 74 52 65 | 67 69 73 74 72 79 09 32 |ObjectRe|gistry.2|
|00000820| 35 0d a5 46 57 5f 43 42 | 61 73 69 63 4f 62 6a 65 |5..FW_CB|asicObje|
|00000830| 63 74 52 65 67 69 73 74 | 72 79 09 31 37 0d 46 57 |ctRegist|ry.17.FW|
|00000840| 5f 43 52 65 61 64 61 62 | 6c 65 53 74 72 65 61 6d |_CReadab|leStream|
|00000850| 09 78 78 0d a5 46 57 5f | 43 52 65 61 64 61 62 6c |.xx..FW_|CReadabl|
|00000860| 65 41 72 63 68 69 76 65 | 09 32 39 0d 46 57 5f 43 |eArchive|.29.FW_C|
|00000870| 57 72 69 74 61 62 6c 65 | 53 74 72 65 61 6d 09 78 |Writable|Stream.x|
|00000880| 78 0d a5 46 57 5f 43 57 | 72 69 74 61 62 6c 65 41 |x..FW_CW|ritableA|
|00000890| 72 63 68 69 76 65 09 33 | 33 0d 46 57 5f 54 53 74 |rchive.3|3.FW_TSt|
|000008a0| 61 74 69 63 41 72 63 68 | 69 76 65 72 09 33 35 0d |aticArch|iver.35.|
|000008b0| 41 72 63 68 69 76 65 72 | 20 63 6f 6d 70 6f 6e 65 |Archiver| compone|
|000008c0| 6e 74 20 63 6c 61 73 73 | 65 73 0d 54 68 65 20 41 |nt class|es.The A|
|000008d0| 72 63 68 69 76 65 72 73 | 20 63 6f 6d 70 6f 6e 65 |rchivers| compone|
|000008e0| 6e 74 20 69 73 20 61 20 | 6c 6f 6f 73 65 6c 79 20 |nt is a |loosely |
|000008f0| 62 6f 75 6e 64 20 63 6f | 6c 6c 65 63 74 69 6f 6e |bound co|llection|
|00000900| 20 6f 66 20 63 6c 61 73 | 73 65 73 20 77 68 69 63 | of clas|ses whic|
|00000910| 68 20 64 6f 20 6e 6f 74 | 20 64 65 73 63 65 6e 64 |h do not| descend|
|00000920| 20 66 72 6f 6d 20 61 20 | 73 69 6e 67 6c 65 20 72 | from a |single r|
|00000930| 6f 6f 74 20 63 6c 61 73 | 73 2e 20 46 57 5f 43 57 |oot clas|s. FW_CW|
|00000940| 72 69 74 61 62 6c 65 2d | 41 72 63 68 69 76 65 20 |ritable-|Archive |
|00000950| 61 6e 64 20 46 57 5f 43 | 52 65 61 64 61 62 6c 65 |and FW_C|Readable|
|00000960| 41 72 63 68 69 76 65 20 | 64 65 73 63 65 6e 64 20 |Archive |descend |
|00000970| 66 72 6f 6d 20 63 6c 61 | 73 73 65 73 20 69 6e 20 |from cla|sses in |
|00000980| 74 68 65 20 53 74 72 65 | 61 6d 73 20 63 6f 6d 70 |the Stre|ams comp|
|00000990| 6f 6e 65 6e 74 2e 20 43 | 6c 61 73 73 65 73 20 61 |onent. C|lasses a|
|000009a0| 72 65 20 62 72 69 65 66 | 6c 79 20 64 65 73 63 72 |re brief|ly descr|
|000009b0| 69 62 65 64 20 62 65 6c | 6f 77 3a 0d 46 57 5f 43 |ibed bel|ow:.FW_C|
|000009c0| 57 72 69 74 61 62 6c 65 | 41 72 63 68 69 76 65 09 |Writable|Archive.|
|000009d0| 41 20 46 57 5f 43 57 72 | 69 74 61 62 6c 65 53 74 |A FW_CWr|itableSt|
|000009e0| 72 65 61 6d 20 6f 62 6a | 65 63 74 20 74 68 61 74 |ream obj|ect that|
|000009f0| 20 68 61 73 20 61 6e 20 | 6f 62 6a 65 63 74 20 72 | has an |object r|
|00000a00| 65 67 69 73 74 72 79 20 | 6f 62 6a 65 63 74 2e 20 |egistry |object. |
|00000a10| 54 68 69 73 20 63 6c 61 | 73 73 20 64 65 73 63 65 |This cla|ss desce|
|00000a20| 6e 64 73 20 66 72 6f 6d | 20 46 57 5f 43 57 72 69 |nds from| FW_CWri|
|00000a30| 74 61 62 6c 65 2d 53 74 | 72 65 61 6d 20 69 6e 20 |table-St|ream in |
|00000a40| 74 68 65 20 53 74 72 65 | 61 6d 73 20 63 6f 6d 70 |the Stre|ams comp|
|00000a50| 6f 6e 65 6e 74 2e 09 0d | 46 57 5f 43 52 65 61 64 |onent...|FW_CRead|
|00000a60| 61 62 6c 65 41 72 63 68 | 69 76 65 09 41 20 46 57 |ableArch|ive.A FW|
|00000a70| 5f 43 52 65 61 64 61 62 | 6c 65 53 74 72 65 61 6d |_CReadab|leStream|
|00000a80| 20 6f 62 6a 65 63 74 20 | 74 68 61 74 20 68 61 73 | object |that has|
|00000a90| 20 61 20 46 57 5f 43 4f | 62 6a 65 63 74 52 65 67 | a FW_CO|bjectReg|
|00000aa0| 69 73 74 72 79 20 6f 62 | 6a 65 63 74 2e 20 54 68 |istry ob|ject. Th|
|00000ab0| 69 73 20 63 6c 61 73 73 | 20 64 65 73 63 65 6e 64 |is class| descend|
|00000ac0| 73 20 66 72 6f 6d 20 46 | 57 5f 43 52 65 61 64 2d |s from F|W_CRead-|
|00000ad0| 61 62 6c 65 53 74 72 65 | 61 6d 20 69 6e 20 74 68 |ableStre|am in th|
|00000ae0| 65 20 53 74 72 65 61 6d | 73 20 63 6f 6d 70 6f 6e |e Stream|s compon|
|00000af0| 65 6e 74 2e 09 0d 46 57 | 5f 43 4f 62 6a 65 63 74 |ent...FW|_CObject|
|00000b00| 52 65 67 69 73 74 72 79 | 09 41 6e 20 61 62 73 74 |Registry|.An abst|
|00000b10| 72 61 63 74 20 62 61 73 | 65 20 63 6c 61 73 73 20 |ract bas|e class |
|00000b20| 74 68 61 74 20 70 72 6f | 76 69 64 65 73 20 74 68 |that pro|vides th|
|00000b30| 65 20 69 6e 74 65 72 66 | 61 63 65 20 66 6f 72 20 |e interf|ace for |
|00000b40| 61 20 4f 50 46 20 72 75 | 6e 2d 74 69 6d 65 20 6f |a OPF ru|n-time o|
|00000b50| 62 6a 65 63 74 20 72 65 | 67 69 73 74 72 79 2e 20 |bject re|gistry. |
|00000b60| 41 6e 20 6f 62 6a 65 63 | 74 20 72 65 67 69 73 74 |An objec|t regist|
|00000b70| 65 72 20 6d 61 69 6e 74 | 61 69 6e 73 20 61 20 72 |er maint|ains a r|
|00000b80| 65 63 6f 72 64 20 6f 66 | 20 61 72 63 68 69 76 65 |ecord of| archive|
|00000b90| 64 20 6f 62 6a 65 63 74 | 73 2e 20 09 0d 46 57 5f |d object|s. ..FW_|
|00000ba0| 43 42 61 73 69 63 4f 62 | 6a 65 63 74 2d 52 65 67 |CBasicOb|ject-Reg|
|00000bb0| 69 73 74 72 79 09 41 20 | 63 6f 6e 63 72 65 74 65 |istry.A |concrete|
|00000bc0| 20 63 6c 61 73 73 20 64 | 65 72 69 76 65 64 20 66 | class d|erived f|
|00000bd0| 72 6f 6d 20 46 57 5f 43 | 4f 62 6a 65 63 74 52 65 |rom FW_C|ObjectRe|
|00000be0| 67 69 73 74 72 79 20 74 | 68 61 74 20 70 72 6f 76 |gistry t|hat prov|
|00000bf0| 69 64 65 73 20 61 20 62 | 61 73 69 63 20 69 6d 70 |ides a b|asic imp|
|00000c00| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 20 6f 66 20 61 |lementat|ion of a|
|00000c10| 20 72 75 6e 2d 74 69 6d | 65 20 6f 62 6a 65 63 74 | run-tim|e object|
|00000c20| 20 72 65 67 69 73 74 72 | 79 2e 20 59 6f 75 20 6d | registr|y. You m|
|00000c30| 61 79 20 73 70 65 63 69 | 66 79 20 61 20 72 75 6e |ay speci|fy a run|
|00000c40| 2d 74 69 6d 65 20 6f 62 | 6a 65 63 74 20 72 65 67 |-time ob|ject reg|
|00000c50| 69 73 74 72 79 20 77 68 | 65 6e 20 79 6f 75 20 63 |istry wh|en you c|
|00000c60| 72 65 61 74 65 20 61 20 | 77 72 69 74 61 62 6c 65 |reate a |writable|
|00000c70| 20 61 72 63 68 69 76 65 | 20 6f 62 6a 65 63 74 2e | archive| object.|
|00000c80| 20 49 66 20 79 6f 75 20 | 64 6f 6e d5 74 20 73 70 | If you |don.t sp|
|00000c90| 65 63 69 66 79 20 61 20 | 72 65 67 69 73 74 72 79 |ecify a |registry|
|00000ca0| 2c 20 74 68 65 6e 20 4f | 50 46 20 77 69 6c 6c 20 |, then O|PF will |
|00000cb0| 63 72 65 61 74 65 20 61 | 6e 20 6f 62 6a 65 63 74 |create a|n object|
|00000cc0| 20 6f 66 20 74 68 69 73 | 20 63 6c 61 73 73 20 66 | of this| class f|
|00000cd0| 6f 72 20 79 6f 75 2e 09 | 0d 46 57 5f 43 44 79 6e |or you..|.FW_CDyn|
|00000ce0| 61 6d 69 63 41 72 63 68 | 69 76 65 72 09 54 68 69 |amicArch|iver.Thi|
|00000cf0| 73 20 63 6c 61 73 73 20 | 73 75 70 70 6f 72 74 73 |s class |supports|
|00000d00| 20 64 79 6e 61 6d 69 63 | 20 63 6c 61 73 73 20 61 | dynamic| class a|
|00000d10| 72 63 68 69 76 69 6e 67 | 20 6f 70 65 72 61 74 69 |rchiving| operati|
|00000d20| 6f 6e 73 2e 09 0d 46 57 | 5f 54 53 74 61 74 69 63 |ons...FW|_TStatic|
|00000d30| 41 72 63 68 69 76 65 72 | 09 54 68 69 73 20 63 6c |Archiver|.This cl|
|00000d40| 61 73 73 20 74 65 6d 70 | 6c 61 74 65 20 73 75 70 |ass temp|late sup|
|00000d50| 70 6f 72 74 73 20 73 74 | 61 74 69 63 20 63 6c 61 |ports st|atic cla|
|00000d60| 73 73 20 61 72 63 68 69 | 76 69 6e 67 20 6f 70 65 |ss archi|ving ope|
|00000d70| 72 61 74 69 6f 6e 73 2e | 09 0d 0d 46 69 67 75 72 |rations.|...Figur|
|00000d80| 65 20 31 15 31 20 41 72 | 63 68 69 76 65 72 73 20 |e 1.1 Ar|chivers |
|00000d90| 63 6f 6d 70 6f 6e 65 6e | 74 20 63 6c 61 73 73 20 |componen|t class |
|00000da0| 68 69 65 72 61 72 63 68 | 79 2e 0d 4f 74 68 65 72 |hierarch|y..Other|
|00000db0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 73 74 72 75 63 | compone|nt struc|
|00000dc0| 74 75 72 65 73 0d 54 68 | 65 20 41 72 63 68 69 76 |tures.Th|e Archiv|
|00000dd0| 65 72 73 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 69 73 |ers comp|onent is|
|00000de0| 20 64 65 73 69 67 6e 65 | 64 20 74 6f 20 75 73 65 | designe|d to use|
|00000df0| 20 73 65 76 65 72 61 6c | 20 74 79 70 65 64 65 66 | several| typedef|
|00000e00| 73 20 61 6e 64 20 6d 61 | 63 72 6f 73 20 74 6f 20 |s and ma|cros to |
|00000e10| 73 69 6d 70 6c 69 66 79 | 20 74 68 65 20 61 72 63 |simplify| the arc|
|00000e20| 68 69 76 69 6e 67 20 70 | 72 6f 63 65 73 73 2e 0d |hiving p|rocess..|
|00000e30| 49 6e 20 6e 6f 72 6d 61 | 6c 20 63 69 72 63 75 6d |In norma|l circum|
|00000e40| 73 74 61 6e 63 65 73 2c | 20 79 6f 75 20 77 69 6c |stances,| you wil|
|00000e50| 6c 20 69 6e 73 74 61 6e | 74 69 61 74 65 20 61 20 |l instan|tiate a |
|00000e60| 72 65 61 64 61 62 6c 65 | 20 6f 72 20 77 72 69 74 |readable| or writ|
|00000e70| 61 62 6c 65 20 61 72 63 | 68 69 76 65 20 6f 62 6a |able arc|hive obj|
|00000e80| 65 63 74 2c 20 77 68 69 | 63 68 20 63 72 65 61 74 |ect, whi|ch creat|
|00000e90| 65 73 20 61 6e 20 61 72 | 63 68 69 76 65 20 72 65 |es an ar|chive re|
|00000ea0| 67 69 73 74 72 79 20 66 | 6f 72 20 79 6f 75 2e 20 |gistry f|or you. |
|00000eb0| 46 6f 72 20 6f 62 6a 65 | 63 74 73 20 6f 66 20 79 |For obje|cts of y|
|00000ec0| 6f 75 72 20 6f 77 6e 20 | 74 79 70 65 2c 20 79 6f |our own |type, yo|
|00000ed0| 75 20 6d 75 73 74 20 63 | 72 65 61 74 65 20 69 6e |u must c|reate in|
|00000ee0| 70 75 74 20 61 6e 64 20 | 6f 75 74 70 75 74 20 66 |put and |output f|
|00000ef0| 75 6e 63 74 69 6f 6e 73 | 20 61 6e 64 20 74 68 65 |unctions| and the|
|00000f00| 6e 20 69 6e 76 6f 6b 65 | 20 74 68 65 20 74 77 6f |n invoke| the two|
|00000f10| 20 6d 61 63 72 6f 73 20 | 64 65 73 63 72 69 62 65 | macros |describe|
|00000f20| 64 20 69 6e 20 74 68 69 | 73 20 73 65 63 74 69 6f |d in thi|s sectio|
|00000f30| 6e 2e 20 54 68 65 73 65 | 20 6d 61 63 72 6f 73 20 |n. These| macros |
|00000f40| 72 65 67 69 73 74 65 72 | 20 74 68 65 20 64 61 74 |register| the dat|
|00000f50| 61 20 6e 65 63 65 73 73 | 61 72 79 20 74 6f 20 61 |a necess|ary to a|
|00000f60| 72 63 68 69 76 65 20 79 | 6f 75 72 20 6f 62 6a 65 |rchive y|our obje|
|00000f70| 63 74 73 2e 0d 54 68 65 | 20 46 57 5f 52 45 47 49 |cts..The| FW_REGI|
|00000f80| 53 54 45 52 5f 41 52 43 | 48 49 56 45 5f 43 4c 41 |STER_ARC|HIVE_CLA|
|00000f90| 53 53 20 6d 61 63 72 6f | 0d 54 68 69 73 20 6d 61 |SS macro|.This ma|
|00000fa0| 63 72 6f 20 61 73 73 6f | 63 69 61 74 65 73 20 61 |cro asso|ciates a|
|00000fb0| 20 63 6c 61 73 73 20 6c | 61 62 65 6c 20 77 69 74 | class l|abel wit|
|00000fc0| 68 20 61 20 63 6c 61 73 | 73 20 74 79 70 65 2c 20 |h a clas|s type, |
|00000fd0| 61 6e 64 20 61 73 73 6f | 63 69 61 74 65 73 20 74 |and asso|ciates t|
|00000fe0| 68 65 20 63 6c 61 73 73 | 20 74 79 70 65 20 77 69 |he class| type wi|
|00000ff0| 74 68 20 69 6e 70 75 74 | 20 61 6e 64 20 6f 75 74 |th input| and out|
|00001000| 70 75 74 20 66 75 6e 63 | 74 69 6f 6e 73 20 63 75 |put func|tions cu|
|00001010| 73 74 6f 6d 69 7a 65 64 | 20 74 6f 20 68 61 6e 64 |stomized| to hand|
|00001020| 6c 65 20 6f 62 6a 65 63 | 74 73 20 6f 66 20 74 68 |le objec|ts of th|
|00001030| 61 74 20 74 79 70 65 2e | 20 54 68 65 20 63 6c 61 |at type.| The cla|
|00001040| 73 73 20 74 79 70 65 20 | 6d 75 73 74 20 62 65 20 |ss type |must be |
|00001050| 61 20 6f 66 20 61 20 64 | 79 6e 61 6d 69 63 20 63 |a of a d|ynamic c|
|00001060| 6c 61 73 73 2c 20 61 6e | 64 20 69 73 20 75 73 75 |lass, an|d is usu|
|00001070| 61 6c 6c 79 20 61 20 74 | 79 70 65 20 79 6f 75 20 |ally a t|ype you |
|00001080| 68 61 76 65 20 61 73 73 | 69 67 6e 65 64 2e 0d 57 |have ass|igned..W|
|00001090| 68 65 6e 20 63 6f 6d 70 | 6c 65 74 65 64 2c 20 79 |hen comp|leted, y|
|000010a0| 6f 75 20 63 61 6e 20 75 | 73 65 20 3c 3c 20 61 6e |ou can u|se << an|
|000010b0| 64 20 3e 3e 20 6f 70 65 | 72 61 74 6f 72 73 20 74 |d >> ope|rators t|
|000010c0| 6f 20 69 6e 73 65 72 74 | 20 61 6e 64 20 65 78 74 |o insert| and ext|
|000010d0| 72 61 63 74 20 6f 62 6a | 65 63 74 73 20 6f 66 20 |ract obj|ects of |
|000010e0| 74 68 65 20 72 65 67 69 | 73 74 65 72 65 64 20 63 |the regi|stered c|
|000010f0| 6c 61 73 73 20 74 79 70 | 65 20 74 6f 20 77 72 69 |lass typ|e to wri|
|00001100| 74 61 62 6c 65 20 61 6e | 64 20 72 65 61 64 61 62 |table an|d readab|
|00001110| 6c 65 20 61 72 63 68 69 | 76 65 72 73 20 6f 62 6a |le archi|vers obj|
|00001120| 65 63 74 73 2e 0d 59 6f | 75 72 20 63 75 73 74 6f |ects..Yo|ur custo|
|00001130| 6d 20 69 6e 70 75 74 20 | 61 6e 64 20 6f 75 74 70 |m input |and outp|
|00001140| 75 74 20 66 75 6e 63 74 | 69 6f 6e 73 20 6d 75 73 |ut funct|ions mus|
|00001150| 74 20 63 6f 6e 66 6f 72 | 6d 20 74 6f 20 74 68 65 |t confor|m to the|
|00001160| 20 66 75 6e 63 74 69 6f | 6e 20 73 69 67 6e 61 74 | functio|n signat|
|00001170| 75 72 65 20 64 65 66 69 | 6e 65 64 20 62 65 6c 6f |ure defi|ned belo|
|00001180| 77 2c 20 75 6e 64 65 72 | 20 4f 75 74 70 75 74 46 |w, under| OutputF|
|00001190| 75 6e 63 74 69 6f 6e 20 | 74 79 70 65 64 65 66 20 |unction |typedef |
|000011a0| 61 6e 64 20 49 6e 70 75 | 74 46 75 6e 63 74 69 6f |and Inpu|tFunctio|
|000011b0| 6e 20 74 79 70 65 64 65 | 66 2e 0d 54 68 65 20 46 |n typede|f..The F|
|000011c0| 57 5f 52 45 47 49 53 54 | 45 52 5f 41 52 43 48 49 |W_REGIST|ER_ARCHI|
|000011d0| 56 45 5f 4f 4c 44 5f 56 | 45 52 53 49 4f 4e 5f 4c |VE_OLD_V|ERSION_L|
|000011e0| 41 42 45 4c 20 6d 61 63 | 72 6f 0d 54 68 69 73 20 |ABEL mac|ro.This |
|000011f0| 6d 61 63 72 6f 20 61 73 | 73 6f 63 69 61 74 65 73 |macro as|sociates|
|00001200| 20 61 6e 20 6f 6c 64 65 | 72 20 76 65 72 73 69 6f | an olde|r versio|
|00001210| 6e 20 6c 61 62 65 6c 20 | 77 69 74 68 20 61 20 63 |n label |with a c|
|00001220| 6c 61 73 73 20 74 79 70 | 65 20 61 6e 64 20 61 20 |lass typ|e and a |
|00001230| 63 75 73 74 6f 6d 20 69 | 6e 70 75 74 20 66 75 6e |custom i|nput fun|
|00001240| 63 74 69 6f 6e 2e 20 59 | 6f 75 20 6d 75 73 74 20 |ction. Y|ou must |
|00001250| 64 65 66 69 6e 65 20 74 | 68 65 20 69 6e 70 75 74 |define t|he input|
|00001260| 20 66 75 6e 63 74 69 6f | 6e 20 74 6f 20 63 72 65 | functio|n to cre|
|00001270| 61 74 65 20 61 6e 20 69 | 6e 73 74 61 6e 63 65 20 |ate an i|nstance |
|00001280| 6f 66 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |of the s|pecified|
|00001290| 20 63 6c 61 73 73 20 74 | 79 70 65 2e 20 74 68 65 | class t|ype. the|
|000012a0| 20 41 72 63 68 69 76 65 | 72 20 73 75 62 73 79 73 | Archive|r subsys|
|000012b0| 74 65 6d 20 63 61 6c 6c | 73 20 74 68 69 73 20 69 |tem call|s this i|
|000012c0| 6e 70 75 74 20 66 75 6e | 63 74 69 6f 6e 20 77 68 |nput fun|ction wh|
|000012d0| 65 6e 20 69 74 20 65 6e | 63 6f 75 6e 74 65 72 73 |en it en|counters|
|000012e0| 20 74 68 65 20 d4 6f 6c | 64 20 76 65 72 73 69 6f | the .ol|d versio|
|000012f0| 6e 20 6c 61 62 65 6c d5 | 20 69 6e 20 61 6e 20 61 |n label.| in an a|
|00001300| 72 63 68 69 76 65 64 20 | 69 6d 61 67 65 2e 0d 59 |rchived |image..Y|
|00001310| 6f 75 72 20 63 75 73 74 | 6f 6d 20 69 6e 70 75 74 |our cust|om input|
|00001320| 20 66 75 6e 63 74 69 6f | 6e 20 6d 75 73 74 20 63 | functio|n must c|
|00001330| 6f 6e 66 6f 72 6d 20 74 | 6f 20 74 68 65 20 66 75 |onform t|o the fu|
|00001340| 6e 63 74 69 6f 6e 20 73 | 69 67 6e 61 74 75 72 65 |nction s|ignature|
|00001350| 20 64 65 66 69 6e 65 64 | 20 62 65 6c 6f 77 2c 20 | defined| below, |
|00001360| 75 6e 64 65 72 20 49 6e | 70 75 74 46 75 6e 63 74 |under In|putFunct|
|00001370| 69 6f 6e 20 74 79 70 65 | 64 65 66 2e 0d 4f 75 74 |ion type|def..Out|
|00001380| 70 75 74 46 75 6e 63 74 | 69 6f 6e 20 74 79 70 65 |putFunct|ion type|
|00001390| 64 65 66 0d 54 68 69 73 | 20 74 79 70 65 64 65 66 |def.This| typedef|
|000013a0| 20 64 65 66 69 6e 65 73 | 20 74 68 65 20 73 69 67 | defines| the sig|
|000013b0| 6e 61 74 75 72 65 20 6f | 66 20 61 20 63 75 73 74 |nature o|f a cust|
|000013c0| 6f 6d 20 66 75 6e 63 74 | 69 6f 6e 20 74 68 61 74 |om funct|ion that|
|000013d0| 20 77 72 69 74 65 73 20 | 6f 75 74 20 74 68 65 20 | writes |out the |
|000013e0| 69 6d 61 67 65 20 6f 66 | 20 61 6e 20 6f 62 6a 65 |image of| an obje|
|000013f0| 63 74 20 6f 66 20 79 6f | 75 72 20 75 73 65 72 2d |ct of yo|ur user-|
|00001400| 74 79 70 65 2e 20 59 6f | 75 20 6d 75 73 74 20 77 |type. Yo|u must w|
|00001410| 72 69 74 65 20 61 20 66 | 75 6e 63 74 69 6f 6e 20 |rite a f|unction |
|00001420| 77 68 69 63 68 20 6d 61 | 74 63 68 65 73 20 74 68 |which ma|tches th|
|00001430| 69 73 20 73 69 67 6e 61 | 74 75 72 65 2e 20 54 68 |is signa|ture. Th|
|00001440| 65 20 46 57 5f 52 45 47 | 49 53 54 45 52 5f 2d 41 |e FW_REG|ISTER_-A|
|00001450| 52 43 48 49 56 45 5f 43 | 4c 41 53 53 20 6d 61 63 |RCHIVE_C|LASS mac|
|00001460| 72 6f 20 63 61 6c 6c 73 | 20 74 68 69 73 20 66 75 |ro calls| this fu|
|00001470| 6e 63 74 69 6f 6e 20 77 | 68 65 6e 20 69 74 20 69 |nction w|hen it i|
|00001480| 73 20 69 6e 76 6f 6b 65 | 64 2e 20 0d 54 68 65 20 |s invoke|d. .The |
|00001490| 41 72 63 68 69 76 65 72 | 20 73 75 62 73 79 73 74 |Archiver| subsyst|
|000014a0| 65 6d 20 63 61 6c 6c 73 | 20 74 68 69 73 20 6f 75 |em calls| this ou|
|000014b0| 74 70 75 74 20 66 75 6e | 63 74 69 6f 6e 20 77 68 |tput fun|ction wh|
|000014c0| 65 6e 20 61 6e 20 61 74 | 74 65 6d 70 74 20 69 73 |en an at|tempt is|
|000014d0| 20 6d 61 64 65 20 74 6f | 20 61 72 63 68 69 76 65 | made to| archive|
|000014e0| 20 6f 75 74 20 61 6e 20 | 69 6e 73 74 61 6e 63 65 | out an |instance|
|000014f0| 20 6f 66 20 74 68 65 20 | 63 6c 61 73 73 20 74 79 | of the |class ty|
|00001500| 70 65 20 74 68 61 74 20 | 77 61 73 20 72 65 67 69 |pe that |was regi|
|00001510| 73 74 65 72 65 64 20 77 | 69 74 68 20 74 68 69 73 |stered w|ith this|
|00001520| 20 66 75 6e 63 74 69 6f | 6e 2e 20 54 68 69 73 20 | functio|n. This |
|00001530| 66 75 6e 63 74 69 6f 6e | 20 74 61 6b 65 73 20 74 |function| takes t|
|00001540| 68 65 20 61 64 64 72 65 | 73 73 20 6f 66 20 61 20 |he addre|ss of a |
|00001550| 77 72 69 74 61 62 6c 65 | 20 61 72 63 68 69 76 65 |writable| archive|
|00001560| 20 6f 62 6a 65 63 74 2e | 20 49 74 20 69 73 20 70 | object.| It is p|
|00001570| 61 73 73 65 64 20 61 20 | 72 65 66 65 72 65 6e 63 |assed a |referenc|
|00001580| 65 20 74 6f 20 74 68 65 | 20 77 72 69 74 61 62 6c |e to the| writabl|
|00001590| 65 20 61 72 63 68 69 76 | 65 20 61 6e 64 20 61 20 |e archiv|e and a |
|000015a0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 6f |pointer |to the o|
|000015b0| 62 6a 65 63 74 20 74 6f | 20 61 72 63 68 69 76 65 |bject to| archive|
|000015c0| 2e 0d 54 68 65 20 46 57 | 5f 52 45 47 49 53 54 45 |..The FW|_REGISTE|
|000015d0| 52 5f 41 52 43 48 49 56 | 45 5f 43 4c 41 53 53 20 |R_ARCHIV|E_CLASS |
|000015e0| 6d 61 63 72 6f 20 74 61 | 6b 65 73 20 61 20 70 6f |macro ta|kes a po|
|000015f0| 69 6e 74 65 72 20 74 6f | 20 74 68 69 73 20 66 75 |inter to| this fu|
|00001600| 6e 63 74 69 6f 6e 20 61 | 73 20 61 6e 20 69 6e 70 |nction a|s an inp|
|00001610| 75 74 20 70 61 72 61 6d | 65 74 65 72 2e 20 54 68 |ut param|eter. Th|
|00001620| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 63 |is funct|ion is c|
|00001630| 61 6c 6c 65 64 20 61 75 | 74 6f 6d 61 74 69 63 61 |alled au|tomatica|
|00001640| 6c 6c 79 20 77 68 65 6e | 65 76 65 72 20 79 6f 75 |lly when|ever you|
|00001650| 20 61 74 74 65 6d 70 74 | 20 74 6f 20 77 72 69 74 | attempt| to writ|
|00001660| 65 20 61 20 63 6c 61 73 | 73 20 6f 66 20 74 68 69 |e a clas|s of thi|
|00001670| 73 20 74 79 70 65 20 66 | 72 6f 6d 20 74 68 65 20 |s type f|rom the |
|00001680| 77 72 69 74 61 62 6c 65 | 20 61 72 63 68 69 76 65 |writable| archive|
|00001690| 72 2e 0d 74 79 70 65 64 | 65 66 20 76 6f 69 64 20 |r..typed|ef void |
|000016a0| 28 2a 20 4f 75 74 70 75 | 74 46 75 6e 63 74 69 6f |(* Outpu|tFunctio|
|000016b0| 6e 29 28 46 57 5f 43 57 | 72 69 74 61 62 6c 65 2d |n)(FW_CW|ritable-|
|000016c0| 20 41 72 63 68 69 76 65 | 20 26 20 61 72 63 68 69 | Archive| & archi|
|000016d0| 76 65 2c 20 63 6f 6e 73 | 74 20 76 6f 69 64 20 2a |ve, cons|t void *|
|000016e0| 6f 62 6a 65 63 74 29 3b | 0d 49 6e 70 75 74 46 75 |object);|.InputFu|
|000016f0| 6e 63 74 69 6f 6e 20 74 | 79 70 65 64 65 66 0d 54 |nction t|ypedef.T|
|00001700| 68 69 73 20 74 79 70 65 | 64 65 66 20 73 70 65 63 |his type|def spec|
|00001710| 69 66 69 65 73 20 74 68 | 65 20 73 69 67 6e 61 74 |ifies th|e signat|
|00001720| 75 72 65 20 6f 66 20 61 | 20 63 75 73 74 6f 6d 20 |ure of a| custom |
|00001730| 66 75 6e 63 74 69 6f 6e | 20 74 68 61 74 20 72 65 |function| that re|
|00001740| 61 64 73 20 74 68 65 20 | 69 6d 61 67 65 20 6f 66 |ads the |image of|
|00001750| 20 61 20 64 79 6e 61 6d | 69 63 20 6f 62 6a 65 63 | a dynam|ic objec|
|00001760| 74 20 6f 66 20 79 6f 75 | 72 20 75 73 65 72 2d 74 |t of you|r user-t|
|00001770| 79 70 65 2e 20 59 6f 75 | 20 6d 75 73 74 20 77 72 |ype. You| must wr|
|00001780| 69 74 65 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f |ite this| functio|
|00001790| 6e 20 74 6f 20 6d 61 74 | 63 68 20 74 68 65 20 73 |n to mat|ch the s|
|000017a0| 69 67 6e 61 74 75 72 65 | 20 62 65 6c 6f 77 2c 20 |ignature| below, |
|000017b0| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 72 65 61 64 |in order| to read|
|000017c0| 20 6f 62 6a 65 63 74 73 | 20 6f 66 20 79 6f 75 72 | objects| of your|
|000017d0| 20 74 79 70 65 20 66 72 | 6f 6d 20 61 6e 20 61 72 | type fr|om an ar|
|000017e0| 63 68 69 76 65 2e 0d 54 | 68 65 20 46 57 5f 52 45 |chive..T|he FW_RE|
|000017f0| 47 49 53 54 45 52 5f 41 | 52 43 48 49 56 45 5f 43 |GISTER_A|RCHIVE_C|
|00001800| 4c 41 53 53 20 6d 61 63 | 72 6f 20 74 61 6b 65 73 |LASS mac|ro takes|
|00001810| 20 61 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 74 68 | a point|er to th|
|00001820| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 61 73 20 61 |is funct|ion as a|
|00001830| 6e 20 69 6e 70 75 74 20 | 70 61 72 61 6d 65 74 65 |n input |paramete|
|00001840| 72 2e 20 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |r. This |function|
|00001850| 20 69 73 20 63 61 6c 6c | 65 64 20 61 75 74 6f 6d | is call|ed autom|
|00001860| 61 74 69 63 61 6c 6c 79 | 20 77 68 65 6e 65 76 65 |atically| wheneve|
|00001870| 72 20 79 6f 75 20 61 74 | 74 65 6d 70 74 20 74 6f |r you at|tempt to|
|00001880| 20 72 65 61 64 20 61 6e | 20 6f 62 6a 65 63 74 20 | read an| object |
|00001890| 6f 66 20 74 68 65 20 74 | 79 70 65 20 79 6f 75 20 |of the t|ype you |
|000018a0| 61 73 73 6f 63 69 61 74 | 65 64 20 74 6f 20 74 68 |associat|ed to th|
|000018b0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 2c 20 75 73 69 |is funct|ion, usi|
|000018c0| 6e 67 20 74 68 65 20 46 | 57 5f 52 45 47 49 53 54 |ng the F|W_REGIST|
|000018d0| 45 52 5f 41 52 43 48 49 | 56 45 5f 43 4c 41 53 53 |ER_ARCHI|VE_CLASS|
|000018e0| 20 6d 61 63 72 6f 2e 0d | 54 68 69 73 20 66 75 6e | macro..|This fun|
|000018f0| 63 74 69 6f 6e 20 74 61 | 6b 65 73 20 61 20 72 65 |ction ta|kes a re|
|00001900| 66 65 72 65 6e 63 65 20 | 74 6f 20 79 6f 75 72 20 |ference |to your |
|00001910| 72 65 61 64 61 62 6c 65 | 20 61 72 63 68 69 76 65 |readable| archive|
|00001920| 20 6f 62 6a 65 63 74 20 | 61 6e 64 20 72 65 74 75 | object |and retu|
|00001930| 72 6e 73 20 61 20 76 6f | 69 64 20 70 6f 69 6e 74 |rns a vo|id point|
|00001940| 65 72 20 74 6f 20 74 68 | 65 20 61 64 64 72 65 73 |er to th|e addres|
|00001950| 73 20 6f 66 20 74 68 65 | 20 61 72 63 68 69 76 65 |s of the| archive|
|00001960| 64 20 6f 62 6a 65 63 74 | 2e 0d 50 61 73 73 20 74 |d object|..Pass t|
|00001970| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |his func|tion to |
|00001980| 74 68 65 20 46 57 5f 52 | 45 47 49 53 54 45 52 5f |the FW_R|EGISTER_|
|00001990| 41 52 43 48 49 56 45 5f | 43 4c 41 53 53 20 6d 61 |ARCHIVE_|CLASS ma|
|000019a0| 63 72 6f 20 77 68 65 6e | 20 79 6f 75 20 69 6e 76 |cro when| you inv|
|000019b0| 6f 6b 65 20 69 74 2e 0d | 74 79 70 65 64 65 66 20 |oke it..|typedef |
|000019c0| 76 6f 69 64 2a 20 28 2a | 20 49 6e 70 75 74 46 75 |void* (*| InputFu|
|000019d0| 6e 63 74 69 6f 6e 29 0d | 28 46 57 5f 43 52 65 61 |nction).|(FW_CRea|
|000019e0| 64 61 62 6c 65 41 72 63 | 68 69 76 65 26 20 72 65 |dableArc|hive& re|
|000019f0| 61 64 61 62 6c 65 41 72 | 63 68 69 76 65 29 3b 0d |adableAr|chive);.|
|00001a00| 6f 70 65 72 61 74 6f 72 | 20 3c 3c 0d 46 57 41 72 |operator| <<.FWAr|
|00001a10| 4f 70 65 72 2e 68 20 64 | 65 66 69 6e 65 73 20 61 |Oper.h d|efines a|
|00001a20| 20 67 6c 6f 62 61 6c 20 | 66 75 6e 63 74 69 6f 6e | global |function|
|00001a30| 20 74 65 6d 70 6c 61 74 | 65 20 66 6f 72 20 74 68 | templat|e for th|
|00001a40| 65 20 3c 3c 20 6f 70 65 | 72 61 74 6f 72 2e 20 54 |e << ope|rator. T|
|00001a50| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 77 72 69 |his func|tion wri|
|00001a60| 74 65 73 20 61 6e 20 6f | 62 6a 65 63 74 20 6f 66 |tes an o|bject of|
|00001a70| 20 61 20 64 79 6e 61 6d | 69 63 20 63 6c 61 73 73 | a dynam|ic class|
|00001a80| 20 74 6f 20 61 20 77 72 | 69 74 61 62 6c 65 20 61 | to a wr|itable a|
|00001a90| 72 63 68 69 76 65 2e 20 | 0d 6f 70 65 72 61 74 6f |rchive. |.operato|
|00001aa0| 72 20 3e 3e 0d 46 57 41 | 72 4f 70 65 72 2e 68 20 |r >>.FWA|rOper.h |
|00001ab0| 64 65 66 69 6e 65 73 20 | 61 20 67 6c 6f 62 61 6c |defines |a global|
|00001ac0| 20 66 75 6e 63 74 69 6f | 6e 20 74 65 6d 70 6c 61 | functio|n templa|
|00001ad0| 74 65 20 66 6f 72 20 74 | 68 65 20 3e 3e 20 6f 70 |te for t|he >> op|
|00001ae0| 65 72 61 74 6f 72 2e 20 | 54 68 69 73 20 66 75 6e |erator. |This fun|
|00001af0| 63 74 69 6f 6e 20 72 65 | 61 64 73 20 61 6e 20 6f |ction re|ads an o|
|00001b00| 62 6a 65 63 74 20 6f 66 | 20 61 20 64 79 6e 61 6d |bject of| a dynam|
|00001b10| 69 63 20 63 6c 61 73 73 | 20 66 72 6f 6d 20 61 20 |ic class| from a |
|00001b20| 72 65 61 64 61 62 6c 65 | 20 61 72 63 68 69 76 65 |readable| archive|
|00001b30| 2e 20 0d 41 72 63 68 69 | 76 65 72 20 63 6f 6d 70 |. .Archi|ver comp|
|00001b40| 6f 6e 65 6e 74 20 64 65 | 73 69 67 6e 0d 4f 50 46 |onent de|sign.OPF|
|00001b50| 20 70 72 6f 76 69 64 65 | 73 20 74 68 65 20 62 61 | provide|s the ba|
|00001b60| 73 69 63 20 73 65 72 76 | 69 63 65 73 20 77 68 69 |sic serv|ices whi|
|00001b70| 63 68 20 6d 6f 73 74 20 | 70 61 72 74 73 20 6e 65 |ch most |parts ne|
|00001b80| 65 64 2c 20 73 74 72 75 | 63 74 75 72 65 64 20 73 |ed, stru|ctured s|
|00001b90| 6f 20 74 68 61 74 20 79 | 6f 75 20 63 61 6e 20 65 |o that y|ou can e|
|00001ba0| 61 73 69 6c 79 20 6d 6f | 64 69 66 79 20 61 6e 64 |asily mo|dify and|
|00001bb0| 20 65 78 74 65 6e 64 20 | 74 68 65 6d 2e 20 0d 4e | extend |them. .N|
|00001bc0| 6f 6e 2d 69 6e 76 61 73 | 69 76 65 20 61 72 63 68 |on-invas|ive arch|
|00001bd0| 69 76 69 6e 67 20 73 63 | 68 65 6d 65 0d 4f 50 46 |iving sc|heme.OPF|
|00001be0| 20 70 72 6f 76 69 64 65 | 73 20 61 20 6e 6f 6e 2d | provide|s a non-|
|00001bf0| 69 6e 76 61 73 69 76 65 | 20 61 72 63 68 69 76 69 |invasive| archivi|
|00001c00| 6e 67 20 61 72 63 68 69 | 74 65 63 74 75 72 65 20 |ng archi|tecture |
|00001c10| 77 68 65 72 65 20 61 72 | 63 68 69 76 69 6e 67 20 |where ar|chiving |
|00001c20| 73 75 70 70 6f 72 74 20 | 66 6f 72 20 61 20 63 6c |support |for a cl|
|00001c30| 61 73 73 20 63 61 6e 20 | 62 65 20 69 6d 70 6c 65 |ass can |be imple|
|00001c40| 6d 65 6e 74 65 64 20 69 | 6e 20 74 68 65 20 73 70 |mented i|n the sp|
|00001c50| 69 72 69 74 20 6f 66 20 | d2 61 64 64 65 64 20 6f |irit of |.added o|
|00001c60| 6e 20 74 68 65 20 73 69 | 64 65 d3 20 61 73 20 6f |n the si|de. as o|
|00001c70| 70 70 6f 73 65 64 20 74 | 6f 20 d2 61 64 64 65 64 |pposed t|o .added|
|00001c80| 20 66 72 6f 6d 20 77 69 | 74 68 69 6e d3 2e 20 0d | from wi|thin.. .|
|00001c90| 4f 50 46 d5 73 20 61 72 | 63 68 69 76 69 6e 67 20 |OPF.s ar|chiving |
|00001ca0| 6d 65 63 68 61 6e 69 73 | 6d 20 64 69 66 66 65 72 |mechanis|m differ|
|00001cb0| 73 20 66 72 6f 6d 20 6f | 74 68 65 72 20 61 72 63 |s from o|ther arc|
|00001cc0| 68 69 76 69 6e 67 20 73 | 63 68 65 6d 65 73 2d 2d |hiving s|chemes--|
|00001cd0| 20 74 79 70 69 63 61 6c | 6c 79 2c 20 74 68 65 20 | typical|ly, the |
|00001ce0| 63 6c 61 73 73 20 66 6f | 72 20 77 68 69 63 68 20 |class fo|r which |
|00001cf0| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 70 72 6f 76 |you want| to prov|
|00001d00| 69 64 65 20 61 72 63 68 | 69 76 69 6e 67 20 73 75 |ide arch|iving su|
|00001d10| 70 70 6f 72 74 20 66 6f | 72 20 64 6f 65 73 20 6e |pport fo|r does n|
|00001d20| 6f 74 20 6e 65 65 64 20 | 74 6f 20 62 65 20 6d 6f |ot need |to be mo|
|00001d30| 64 69 66 69 65 64 2e 20 | 54 68 61 74 20 69 73 2c |dified. |That is,|
|00001d40| 20 61 72 63 68 69 76 69 | 6e 67 20 73 75 70 70 6f | archivi|ng suppo|
|00001d50| 72 74 20 69 73 20 6e 6f | 74 20 61 63 63 6f 6d 70 |rt is no|t accomp|
|00001d60| 6c 69 73 68 65 64 20 62 | 79 20 61 64 64 69 6e 67 |lished b|y adding|
|00001d70| 20 6d 65 74 68 6f 64 73 | 20 74 6f 20 74 68 65 20 | methods| to the |
|00001d80| 63 6c 61 73 73 20 69 74 | 73 65 6c 66 2c 20 62 75 |class it|self, bu|
|00001d90| 74 20 72 61 74 68 65 72 | 20 62 79 20 72 65 67 69 |t rather| by regi|
|00001da0| 73 74 65 72 69 6e 67 20 | 6d 65 74 68 6f 64 73 20 |stering |methods |
|00001db0| 6f 75 74 73 69 64 65 20 | 74 68 65 20 63 6c 61 73 |outside |the clas|
|00001dc0| 73 20 76 69 61 20 74 68 | 65 20 46 57 5f 52 45 47 |s via th|e FW_REG|
|00001dd0| 49 53 54 45 52 5f 2d 41 | 52 43 48 49 56 45 5f 43 |ISTER_-A|RCHIVE_C|
|00001de0| 4c 41 53 53 20 6d 61 63 | 72 6f 2e 0d 52 54 54 49 |LASS mac|ro..RTTI|
|00001df0| 20 53 75 70 70 6f 72 74 | 0d 54 68 65 20 41 72 63 | Support|.The Arc|
|00001e00| 68 69 76 65 72 73 20 63 | 6f 6d 70 6f 6e 65 6e 74 |hivers c|omponent|
|00001e10| 20 63 75 72 72 65 6e 74 | 6c 79 20 72 65 6c 69 65 | current|ly relie|
|00001e20| 73 20 75 70 6f 6e 20 52 | 54 54 49 20 73 75 70 70 |s upon R|TTI supp|
|00001e30| 6f 72 74 2e 20 52 54 54 | 49 20 73 75 70 70 6f 72 |ort. RTT|I suppor|
|00001e40| 74 20 69 73 20 63 75 72 | 72 65 6e 74 6c 79 20 6e |t is cur|rently n|
|00001e50| 6f 74 20 77 69 64 65 6c | 79 20 61 76 61 69 6c 61 |ot widel|y availa|
|00001e60| 62 6c 65 2d 2d 20 48 6f | 77 65 76 65 72 2c 20 52 |ble-- Ho|wever, R|
|00001e70| 54 54 49 20 69 73 20 61 | 6e 20 61 63 63 65 70 74 |TTI is a|n accept|
|00001e80| 65 64 20 6c 61 6e 67 75 | 61 67 65 20 65 78 74 65 |ed langu|age exte|
|00001e90| 6e 73 69 6f 6e 2e 20 46 | 75 72 74 68 65 72 2c 20 |nsion. F|urther, |
|00001ea0| 69 6e 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 73 20 |in envir|onments |
|00001eb0| 74 68 61 74 20 73 75 70 | 70 6f 72 74 20 52 54 54 |that sup|port RTT|
|00001ec0| 49 20 28 65 69 74 68 65 | 72 20 74 68 72 6f 75 67 |I (eithe|r throug|
|00001ed0| 68 20 74 68 65 20 63 6f | 6d 70 69 6c 65 72 20 6f |h the co|mpiler o|
|00001ee0| 72 20 61 20 73 69 6d 75 | 6c 61 74 69 6f 6e 20 6f |r a simu|lation o|
|00001ef0| 66 20 52 54 54 49 29 20 | 74 68 69 72 64 2d 70 61 |f RTTI) |third-pa|
|00001f00| 72 74 79 20 63 6c 61 73 | 73 65 73 20 6d 61 79 20 |rty clas|ses may |
|00001f10| 62 65 20 61 72 63 68 69 | 76 65 64 20 77 69 74 68 |be archi|ved with|
|00001f20| 6f 75 74 20 6d 6f 64 69 | 66 69 63 61 74 69 6f 6e |out modi|fication|
|00001f30| 20 74 6f 20 74 68 65 20 | 65 78 69 73 74 69 6e 67 | to the |existing|
|00001f40| 20 73 6f 75 72 63 65 2e | 20 46 69 6e 61 6c 6c 79 | source.| Finally|
|00001f50| 2c 20 69 6e 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |, in env|ironment|
|00001f60| 73 20 77 68 65 72 65 20 | 52 54 54 49 20 69 73 20 |s where |RTTI is |
|00001f70| 6e 6f 74 20 73 75 70 70 | 6f 72 74 65 64 20 62 75 |not supp|orted bu|
|00001f80| 74 20 77 68 65 72 65 20 | 79 6f 75 20 68 61 76 65 |t where |you have|
|00001f90| 20 61 63 63 65 73 73 20 | 74 6f 20 74 68 65 20 73 | access |to the s|
|00001fa0| 6f 75 72 63 65 20 74 6f | 20 74 68 65 20 74 68 69 |ource to| the thi|
|00001fb0| 72 64 2d 70 61 72 74 79 | 20 63 6c 61 73 73 65 73 |rd-party| classes|
|00001fc0| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 61 72 63 | you wan|t to arc|
|00001fd0| 68 69 76 65 2c 20 4f 50 | 46 20 70 72 6f 76 69 64 |hive, OP|F provid|
|00001fe0| 65 73 20 6d 61 63 72 6f | 73 20 66 6f 72 20 73 69 |es macro|s for si|
|00001ff0| 6d 75 6c 61 74 69 6e 67 | 20 52 54 54 49 20 73 75 |mulating| RTTI su|
|00002000| 70 70 6f 72 74 2e 0d 52 | 75 6e 2d 74 69 6d 65 20 |pport..R|un-time |
|00002010| 6f 62 6a 65 63 74 20 72 | 65 67 69 73 74 72 79 0d |object r|egistry.|
|00002020| 57 68 65 6e 20 61 72 63 | 68 69 76 69 6e 67 20 61 |When arc|hiving a|
|00002030| 20 6e 65 74 77 6f 72 6b | 20 6f 66 20 6f 62 6a 65 | network| of obje|
|00002040| 63 74 73 2c 20 69 74 20 | 69 73 20 63 6f 6d 6d 6f |cts, it |is commo|
|00002050| 6e 20 66 6f 72 20 6d 61 | 6e 79 20 6f 62 6a 65 63 |n for ma|ny objec|
|00002060| 74 73 20 74 6f 20 73 68 | 61 72 65 20 61 20 73 69 |ts to sh|are a si|
|00002070| 6e 67 6c 65 20 6f 62 6a | 65 63 74 20 69 6e 73 74 |ngle obj|ect inst|
|00002080| 61 6e 63 65 2e 20 4f 50 | 46 20 75 73 65 73 20 61 |ance. OP|F uses a|
|00002090| 20 72 75 6e 2d 74 69 6d | 65 20 6f 62 6a 65 63 74 | run-tim|e object|
|000020a0| 20 72 65 67 69 73 74 72 | 79 20 74 6f 20 73 75 70 | registr|y to sup|
|000020b0| 70 6f 72 74 20 74 68 65 | 20 61 72 63 68 69 76 69 |port the| archivi|
|000020c0| 6e 67 20 6f 66 20 74 68 | 65 73 65 20 73 68 61 72 |ng of th|ese shar|
|000020d0| 65 64 20 6f 62 6a 65 63 | 74 73 2e 20 0d 41 6e 20 |ed objec|ts. .An |
|000020e0| 6f 62 6a 65 63 74 20 69 | 73 20 61 72 63 68 69 76 |object i|s archiv|
|000020f0| 65 64 2d 6f 75 74 20 62 | 79 20 70 61 73 73 69 6e |ed-out b|y passin|
|00002100| 67 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |g a poin|ter to t|
|00002110| 68 65 20 6f 62 6a 65 63 | 74 20 74 6f 20 62 65 20 |he objec|t to be |
|00002120| 61 72 63 68 69 76 65 64 | 2e 20 49 66 20 74 68 65 |archived|. If the|
|00002130| 20 6f 62 6a 65 63 74 20 | 70 6f 69 6e 74 65 72 20 | object |pointer |
|00002140| 69 73 20 6e 6f 74 20 61 | 6c 72 65 61 64 79 20 69 |is not a|lready i|
|00002150| 6e 20 74 68 65 20 72 75 | 6e 2d 74 69 6d 65 20 6f |n the ru|n-time o|
|00002160| 62 6a 65 63 74 20 72 65 | 67 69 73 74 72 79 2c 20 |bject re|gistry, |
|00002170| 74 68 65 20 41 72 63 68 | 69 76 65 72 20 63 6f 6d |the Arch|iver com|
|00002180| 70 6f 6e 65 6e 74 20 72 | 65 67 69 73 74 65 72 73 |ponent r|egisters|
|00002190| 20 74 68 65 20 6f 62 6a | 65 63 74 20 70 6f 69 6e | the obj|ect poin|
|000021a0| 74 65 72 20 61 6e 64 20 | 77 72 69 74 65 73 20 74 |ter and |writes t|
|000021b0| 68 65 20 6f 62 6a 65 63 | 74 20 69 6d 61 67 65 20 |he objec|t image |
|000021c0| 74 6f 20 74 68 65 20 73 | 69 6e 6b 2e 20 49 66 20 |to the s|ink. If |
|000021d0| 74 68 65 20 61 72 63 68 | 69 76 65 72 20 63 6f 6d |the arch|iver com|
|000021e0| 70 6f 6e 65 6e 74 20 66 | 69 6e 64 73 20 6f 62 6a |ponent f|inds obj|
|000021f0| 65 63 74 20 70 6f 69 6e | 74 65 72 20 69 6e 20 74 |ect poin|ter in t|
|00002200| 68 65 20 72 65 67 69 73 | 74 72 79 2c 20 74 68 65 |he regis|try, the|
|00002210| 6e 20 74 68 65 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |n the co|mponent |
|00002220| 77 72 69 74 65 73 20 6f | 75 74 20 61 20 72 65 66 |writes o|ut a ref|
|00002230| 65 72 65 6e 63 65 20 74 | 6f 20 74 68 65 20 70 72 |erence t|o the pr|
|00002240| 65 76 69 6f 75 73 20 69 | 6d 61 67 65 20 69 6e 73 |evious i|mage ins|
|00002250| 74 65 61 64 2e 0d 4e 6f | 74 65 0d 52 65 66 65 72 |tead..No|te.Refer|
|00002260| 65 6e 63 69 6e 67 20 61 | 20 70 72 65 76 69 6f 75 |encing a| previou|
|00002270| 73 6c 79 20 65 78 69 73 | 74 69 6e 67 20 61 72 63 |sly exis|ting arc|
|00002280| 68 69 76 65 64 20 6f 62 | 6a 65 63 74 20 69 73 20 |hived ob|ject is |
|00002290| 63 61 6c 6c 65 64 20 61 | 72 63 68 69 76 69 6e 67 |called a|rchiving|
|000022a0| 20 62 79 20 72 65 66 65 | 72 65 6e 63 65 2e 20 57 | by refe|rence. W|
|000022b0| 72 69 74 69 6e 67 20 6f | 75 74 20 61 6e 20 6f 62 |riting o|ut an ob|
|000022c0| 6a 65 63 74 20 69 6e 20 | 69 74 73 20 63 75 72 72 |ject in |its curr|
|000022d0| 65 6e 74 20 73 74 61 74 | 65 20 69 73 20 63 61 6c |ent stat|e is cal|
|000022e0| 6c 65 64 20 61 72 63 68 | 69 76 69 6e 67 20 62 79 |led arch|iving by|
|000022f0| 20 76 61 6c 75 65 2e 20 | 0d 0d 57 68 65 6e 20 61 | value. |..When a|
|00002300| 6e 20 6f 62 6a 65 63 74 | 20 69 73 20 61 72 63 68 |n object| is arch|
|00002310| 69 76 65 64 2d 69 6e 2c | 20 74 68 65 20 41 72 63 |ived-in,| the Arc|
|00002320| 68 69 76 65 72 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |hiver co|mponent |
|00002330| 70 61 72 73 65 73 20 74 | 68 65 20 68 65 61 64 65 |parses t|he heade|
|00002340| 72 20 64 65 73 63 72 69 | 62 69 6e 67 20 74 68 65 |r descri|bing the|
|00002350| 20 61 72 63 68 69 76 65 | 64 20 69 6d 61 67 65 20 | archive|d image |
|00002360| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 77 68 65 |to deter|mine whe|
|00002370| 74 68 65 72 20 74 68 65 | 20 69 6d 61 67 65 20 69 |ther the| image i|
|00002380| 73 20 61 6e 20 6f 62 6a | 65 63 74 20 6f 72 20 61 |s an obj|ect or a|
|00002390| 20 72 65 66 65 72 65 6e | 63 65 20 74 6f 20 61 6e | referen|ce to an|
|000023a0| 20 6f 62 6a 65 63 74 2e | 20 49 66 20 74 68 65 20 | object.| If the |
|000023b0| 69 6d 61 67 65 20 69 73 | 20 61 6e 20 6f 62 6a 65 |image is| an obje|
|000023c0| 63 74 2c 20 74 68 65 20 | 41 72 63 68 69 76 65 72 |ct, the |Archiver|
|000023d0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 63 61 6c 6c 73 | compone|nt calls|
|000023e0| 20 74 68 65 20 61 73 73 | 6f 63 69 61 74 65 64 20 | the ass|ociated |
|000023f0| 6f 62 6a 65 63 74 20 69 | 6e 70 75 74 20 66 75 6e |object i|nput fun|
|00002400| 63 74 69 6f 6e 20 74 6f | 20 63 72 65 61 74 65 20 |ction to| create |
|00002410| 74 68 65 20 6f 62 6a 65 | 63 74 2c 20 61 6e 64 20 |the obje|ct, and |
|00002420| 74 68 65 6e 20 72 65 67 | 69 73 74 65 72 73 20 61 |then reg|isters a|
|00002430| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00002440| 6f 62 6a 65 63 74 20 69 | 6e 20 74 68 65 20 72 75 |object i|n the ru|
|00002450| 6e 2d 74 69 6d 65 20 6f | 62 6a 65 63 74 20 72 65 |n-time o|bject re|
|00002460| 67 69 73 74 72 79 2e 20 | 49 66 20 74 68 65 20 69 |gistry. |If the i|
|00002470| 6d 61 67 65 20 69 73 20 | 61 20 72 65 66 65 72 65 |mage is |a refere|
|00002480| 6e 63 65 20 74 6f 20 61 | 6e 20 6f 62 6a 65 63 74 |nce to a|n object|
|00002490| 2c 20 74 68 65 20 72 75 | 6e 2d 74 69 6d 65 20 6f |, the ru|n-time o|
|000024a0| 62 6a 65 63 74 20 72 65 | 67 69 73 74 72 79 20 69 |bject re|gistry i|
|000024b0| 73 20 63 6f 6e 73 75 6c | 74 65 64 20 74 6f 20 6f |s consul|ted to o|
|000024c0| 62 74 61 69 6e 20 74 68 | 65 20 70 6f 69 6e 74 65 |btain th|e pointe|
|000024d0| 72 20 74 6f 20 74 68 65 | 20 70 72 65 76 69 6f 75 |r to the| previou|
|000024e0| 73 6c 79 20 63 72 65 61 | 74 65 64 20 6f 62 6a 65 |sly crea|ted obje|
|000024f0| 63 74 2e 0d 41 72 63 68 | 69 76 65 72 20 63 6f 6d |ct..Arch|iver com|
|00002500| 70 6f 6e 65 6e 74 20 64 | 65 70 65 6e 64 65 6e 63 |ponent d|ependenc|
|00002510| 69 65 73 0d 52 65 61 64 | 61 62 6c 65 20 61 6e 64 |ies.Read|able and|
|00002520| 20 77 72 69 74 61 62 6c | 65 20 61 72 63 68 69 76 | writabl|e archiv|
|00002530| 65 73 20 61 72 65 20 64 | 65 70 65 6e 64 65 6e 74 |es are d|ependent|
|00002540| 20 6f 6e 20 74 68 65 20 | 73 74 72 65 61 6d 20 63 | on the |stream c|
|00002550| 6f 6d 70 6f 6e 65 6e 74 | 2c 20 73 69 6e 63 65 20 |omponent|, since |
|00002560| 61 20 46 57 5f 43 52 65 | 61 64 61 62 6c 65 41 72 |a FW_CRe|adableAr|
|00002570| 63 68 69 76 65 20 69 73 | 20 61 20 72 65 61 64 61 |chive is| a reada|
|00002580| 62 6c 65 20 73 74 72 65 | 61 6d 20 61 6e 64 20 61 |ble stre|am and a|
|00002590| 20 46 57 5f 43 57 72 69 | 74 61 62 6c 65 41 72 63 | FW_CWri|tableArc|
|000025a0| 68 69 76 65 20 69 73 20 | 61 20 77 72 69 74 61 62 |hive is |a writab|
|000025b0| 6c 65 20 73 74 72 65 61 | 6d 2e 20 0d 54 68 65 20 |le strea|m. .The |
|000025c0| 46 57 5f 20 52 45 47 49 | 53 54 45 52 5f 41 52 43 |FW_ REGI|STER_ARC|
|000025d0| 48 49 56 45 5f 43 4c 41 | 53 53 20 6d 61 63 72 6f |HIVE_CLA|SS macro|
|000025e0| 20 69 73 20 64 65 70 65 | 6e 64 65 6e 74 20 6f 6e | is depe|ndent on|
|000025f0| 20 74 68 65 20 52 75 6e | 54 79 70 65 20 63 6f 6d | the Run|Type com|
|00002600| 70 6f 6e 65 6e 74 20 66 | 6f 72 20 69 74 73 20 64 |ponent f|or its d|
|00002610| 65 66 69 6e 69 74 69 6f | 6e 20 6f 66 20 74 68 65 |efinitio|n of the|
|00002620| 20 6d 61 63 72 6f 20 46 | 57 5f 43 4c 41 53 53 4e | macro F|W_CLASSN|
|00002630| 41 4d 45 5f 46 52 4f 4d | 5f 54 59 50 45 2e 0d 54 |AME_FROM|_TYPE..T|
|00002640| 68 65 20 67 6c 6f 62 61 | 6c 20 74 65 6d 70 6c 61 |he globa|l templa|
|00002650| 74 65 20 66 75 6e 63 74 | 69 6f 6e 20 66 6f 72 20 |te funct|ion for |
|00002660| 74 68 65 20 3c 3c 20 6f | 70 65 72 61 74 6f 72 20 |the << o|perator |
|00002670| 64 65 66 69 6e 65 64 20 | 69 6e 20 46 57 41 72 4f |defined |in FWArO|
|00002680| 70 65 72 2e 68 20 69 73 | 20 64 65 70 65 6e 64 65 |per.h is| depende|
|00002690| 6e 74 20 6f 6e 20 74 68 | 65 20 52 75 6e 54 79 70 |nt on th|e RunTyp|
|000026a0| 65 20 63 6f 6d 70 6f 6e | 65 6e 74 20 66 6f 72 20 |e compon|ent for |
|000026b0| 69 74 73 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6f |its defi|nition o|
|000026c0| 66 20 74 68 65 20 6d 61 | 63 72 6f 20 46 57 5f 43 |f the ma|cro FW_C|
|000026d0| 4c 41 53 53 4e 41 4d 45 | 5f 46 52 4f 4d 5f 50 4f |LASSNAME|_FROM_PO|
|000026e0| 49 4e 54 45 52 2e 0d 55 | 73 69 6e 67 20 74 68 65 |INTER..U|sing the|
|000026f0| 20 41 72 63 68 69 76 65 | 72 20 43 6f 6d 70 6f 6e | Archive|r Compon|
|00002700| 65 6e 74 0d 54 68 65 20 | 41 72 63 68 69 76 65 72 |ent.The |Archiver|
|00002710| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 70 65 72 66 6f | compone|nt perfo|
|00002720| 72 6d 73 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |rms the |followin|
|00002730| 67 20 74 61 73 6b 73 3a | 0d a5 09 41 72 63 68 69 |g tasks:|...Archi|
|00002740| 76 69 6e 67 20 6f 62 6a | 65 63 74 73 20 6f 66 20 |ving obj|ects of |
|00002750| 73 74 61 74 69 63 20 63 | 6c 61 73 73 65 73 20 62 |static c|lasses b|
|00002760| 79 20 76 61 6c 75 65 20 | 61 6e 64 20 62 79 20 72 |y value |and by r|
|00002770| 65 66 65 72 65 6e 63 65 | 2e 0d a5 09 41 72 63 68 |eference|....Arch|
|00002780| 69 76 69 6e 67 20 6f 62 | 6a 65 63 74 73 20 6f 66 |iving ob|jects of|
|00002790| 20 64 79 6e 61 6d 69 63 | 20 63 6c 61 73 73 65 73 | dynamic| classes|
|000027a0| 2e 0d a5 09 41 62 69 6c | 69 74 79 20 74 6f 20 61 |....Abil|ity to a|
|000027b0| 64 64 20 4f 50 46 20 61 | 72 63 68 69 76 69 6e 67 |dd OPF a|rchiving|
|000027c0| 20 74 6f 20 74 68 69 72 | 64 2d 70 61 72 74 79 20 | to thir|d-party |
|000027d0| 63 6f 6d 70 6f 6e 65 6e | 74 73 2e 0d a5 09 4f 62 |componen|ts....Ob|
|000027e0| 6a 65 63 74 20 76 65 72 | 73 69 6f 6e 69 6e 67 2e |ject ver|sioning.|
|000027f0| 0d 49 6e 73 74 61 6e 74 | 69 61 74 69 6e 67 20 77 |.Instant|iating w|
|00002800| 69 74 68 69 6e 20 74 68 | 65 20 41 72 63 68 69 76 |ithin th|e Archiv|
|00002810| 65 72 20 63 6f 6d 70 6f | 6e 65 6e 74 0d 59 6f 75 |er compo|nent.You|
|00002820| 20 6d 61 79 20 61 72 63 | 68 69 76 65 20 6f 62 6a | may arc|hive obj|
|00002830| 65 63 74 73 20 6f 66 20 | 73 74 61 74 69 63 20 63 |ects of |static c|
|00002840| 6c 61 73 73 65 73 20 62 | 79 20 76 61 6c 75 65 20 |lasses b|y value |
|00002850| 6f 72 20 62 79 20 72 65 | 66 65 72 65 6e 63 65 2e |or by re|ference.|
|00002860| 20 20 20 4f 62 6a 65 63 | 74 73 20 61 72 63 68 69 | Objec|ts archi|
|00002870| 76 65 64 20 62 79 20 76 | 61 6c 75 65 20 61 72 65 |ved by v|alue are|
|00002880| 20 77 72 69 74 74 65 6e | 20 74 6f 20 74 68 65 20 | written| to the |
|00002890| 61 72 63 68 69 76 65 20 | 77 69 74 68 6f 75 74 20 |archive |without |
|000028a0| 75 73 69 6e 67 20 74 68 | 65 20 6f 62 6a 65 63 74 |using th|e object|
|000028b0| 20 72 65 67 69 73 74 72 | 79 2e 20 4f 62 6a 65 63 | registr|y. Objec|
|000028c0| 74 73 20 61 72 63 68 69 | 76 65 64 20 62 79 20 72 |ts archi|ved by r|
|000028d0| 65 66 65 72 65 6e 63 65 | 20 75 73 65 20 74 68 65 |eference| use the|
|000028e0| 20 6f 62 6a 65 63 74 20 | 72 65 67 69 73 74 72 79 | object |registry|
|000028f0| 2e 20 0d 41 72 63 68 69 | 76 69 6e 67 20 73 74 61 |. .Archi|ving sta|
|00002900| 74 69 63 20 63 6c 61 73 | 73 65 73 20 62 79 20 76 |tic clas|ses by v|
|00002910| 61 6c 75 65 0d 54 6f 20 | 61 72 63 68 69 76 65 20 |alue.To |archive |
|00002920| 61 6e 20 6f 62 6a 65 63 | 74 20 62 79 20 76 61 6c |an objec|t by val|
|00002930| 75 65 2c 20 63 72 65 61 | 74 65 20 61 20 67 6c 6f |ue, crea|te a glo|
|00002940| 62 61 6c 20 6f 70 65 72 | 61 74 6f 72 20 66 6f 72 |bal oper|ator for|
|00002950| 20 6f 70 65 72 61 74 6f | 72 3e 3e 20 61 6e 64 20 | operato|r>> and |
|00002960| 6f 70 65 72 61 74 6f 72 | 3c 3c 20 61 6e 64 20 72 |operator|<< and r|
|00002970| 65 61 64 20 6f 72 20 77 | 72 69 74 65 20 74 68 65 |ead or w|rite the|
|00002980| 20 6f 62 6a 65 63 74 20 | 74 6f 20 61 6e 20 61 72 | object |to an ar|
|00002990| 63 68 69 76 65 20 6f 62 | 6a 65 63 74 2e 20 0d 54 |chive ob|ject. .T|
|000029a0| 68 65 20 65 78 61 6d 70 | 6c 65 20 62 65 6c 6f 77 |he examp|le below|
|000029b0| 20 61 72 63 68 69 76 65 | 73 20 61 20 73 74 61 74 | archive|s a stat|
|000029c0| 69 63 20 63 6c 61 73 73 | 20 62 79 20 76 61 6c 75 |ic class| by valu|
|000029d0| 65 2e 0d 09 31 2e 09 44 | 65 66 69 6e 65 20 61 20 |e...1..D|efine a |
|000029e0| 73 74 61 74 69 63 20 63 | 6c 61 73 73 20 6e 61 6d |static c|lass nam|
|000029f0| 65 64 20 53 53 74 61 74 | 69 63 54 79 70 65 2e 0d |ed SStat|icType..|
|00002a00| 09 09 73 74 72 75 63 74 | 20 53 53 74 61 74 69 63 |..struct| SStatic|
|00002a10| 54 79 70 65 20 7b 0d 09 | 09 09 69 6e 74 20 66 31 |Type {..|..int f1|
|00002a20| 3b 0d 09 09 09 69 6e 74 | 20 66 32 3a 0d 09 09 7d |;....int| f2:...}|
|00002a30| 3b 0d 09 32 2e 09 4f 76 | 65 72 6c 6f 61 64 20 74 |;..2..Ov|erload t|
|00002a40| 68 65 20 6f 70 65 72 61 | 74 6f 72 3e 3e 20 66 75 |he opera|tor>> fu|
|00002a50| 6e 63 74 69 6f 6e 20 61 | 6e 64 20 77 72 69 74 65 |nction a|nd write|
|00002a60| 20 6f 75 74 20 66 69 65 | 6c 64 73 20 6f 66 20 74 | out fie|lds of t|
|00002a70| 79 70 65 20 53 53 74 61 | 74 69 63 54 79 70 65 20 |ype SSta|ticType |
|00002a80| 75 73 69 6e 67 20 79 6f | 75 72 20 6f 77 6e 20 77 |using yo|ur own w|
|00002a90| 72 69 74 61 62 6c 65 20 | 61 72 63 68 69 76 65 20 |ritable |archive |
|00002aa0| 61 73 20 66 6f 6c 6c 6f | 77 73 3a 20 0d 09 09 46 |as follo|ws: ...F|
|00002ab0| 57 5f 43 57 72 69 74 61 | 62 6c 65 41 72 63 68 69 |W_CWrita|bleArchi|
|00002ac0| 76 65 20 26 20 6f 70 65 | 72 61 74 6f 72 3c 3c 0d |ve & ope|rator<<.|
|00002ad0| 09 09 28 46 57 5f 43 57 | 72 69 74 61 62 6c 65 41 |..(FW_CW|ritableA|
|00002ae0| 72 63 68 69 76 65 20 77 | 72 69 74 61 62 6c 65 41 |rchive w|ritableA|
|00002af0| 72 63 68 69 76 65 2c 0d | 09 09 63 6f 6e 73 74 20 |rchive,.|..const |
|00002b00| 43 53 74 61 74 69 63 54 | 79 70 65 20 26 20 6f 62 |CStaticT|ype & ob|
|00002b10| 6a 65 63 74 29 20 7b 0d | 0d 09 09 09 77 72 69 74 |ject) {.|....writ|
|00002b20| 61 62 6c 65 41 72 63 68 | 69 76 65 20 3c 3c 20 6f |ableArch|ive << o|
|00002b30| 62 6a 65 63 74 2e 66 31 | 3b 0d 09 09 09 77 72 69 |bject.f1|;....wri|
|00002b40| 74 61 62 6c 65 41 72 63 | 68 69 76 65 3c 3c 20 6f |tableArc|hive<< o|
|00002b50| 62 6a 65 63 74 2e 66 32 | 3b 0d 09 09 09 72 65 74 |bject.f2|;....ret|
|00002b60| 75 72 6e 20 77 72 69 74 | 61 62 6c 65 41 72 63 68 |urn writ|ableArch|
|00002b70| 69 76 65 3b 0d 09 09 7d | 0d 09 33 2e 09 4f 76 65 |ive;...}|..3..Ove|
|00002b80| 72 6c 6f 61 64 20 74 68 | 65 20 6f 70 65 72 61 74 |rload th|e operat|
|00002b90| 6f 72 3e 3e 20 66 75 6e | 63 74 69 6f 6e 20 61 6e |or>> fun|ction an|
|00002ba0| 64 20 72 65 61 64 20 66 | 69 65 6c 64 73 20 6f 66 |d read f|ields of|
|00002bb0| 20 74 79 70 65 20 53 53 | 74 61 74 69 63 54 79 70 | type SS|taticTyp|
|00002bc0| 65 20 75 73 69 6e 67 20 | 79 6f 75 72 20 6f 77 6e |e using |your own|
|00002bd0| 20 72 65 61 64 61 62 6c | 65 20 61 72 63 68 69 76 | readabl|e archiv|
|00002be0| 65 20 61 73 20 66 6f 6c | 6c 6f 77 73 3a 20 0d 09 |e as fol|lows: ..|
|00002bf0| 09 46 57 5f 43 52 65 61 | 64 61 62 6c 65 41 72 63 |.FW_CRea|dableArc|
|00002c00| 68 69 76 65 20 26 20 6f | 70 65 72 61 74 6f 72 3e |hive & o|perator>|
|00002c10| 3e 0d 09 09 28 46 57 5f | 43 52 65 61 64 61 62 6c |>...(FW_|CReadabl|
|00002c20| 65 41 72 63 68 69 76 65 | 20 72 65 61 64 61 62 6c |eArchive| readabl|
|00002c30| 65 41 72 63 68 69 76 65 | 2c 0d 09 09 09 09 09 20 |eArchive|,...... |
|00002c40| 20 20 20 43 53 74 61 74 | 69 63 54 79 70 65 20 26 | CStat|icType &|
|00002c50| 20 6f 62 6a 65 63 74 29 | 0d 09 09 7b 0d 09 09 09 | object)|...{....|
|00002c60| 72 65 61 64 61 62 6c 65 | 41 72 63 68 69 76 65 20 |readable|Archive |
|00002c70| 3e 3e 20 6f 62 6a 65 63 | 74 2e 66 31 3b 0d 09 09 |>> objec|t.f1;...|
|00002c80| 09 72 65 61 64 61 62 6c | 65 41 72 63 68 69 76 65 |.readabl|eArchive|
|00002c90| 20 3e 3e 20 6f 62 6a 65 | 63 74 2e 66 32 3b 0d 09 | >> obje|ct.f2;..|
|00002ca0| 09 09 72 65 74 75 72 6e | 20 72 65 61 64 61 62 6c |..return| readabl|
|00002cb0| 65 41 72 63 68 69 76 65 | 3b 20 0d 09 09 7d 0d 4e |eArchive|; ...}.N|
|00002cc0| 6f 74 65 20 74 68 61 74 | 20 73 69 6e 63 65 20 72 |ote that| since r|
|00002cd0| 65 61 64 61 62 6c 65 20 | 61 6e 64 20 77 72 69 74 |eadable |and writ|
|00002ce0| 61 62 6c 65 20 61 72 63 | 68 69 76 65 73 20 61 72 |able arc|hives ar|
|00002cf0| 65 20 72 65 61 64 61 62 | 6c 65 20 61 6e 64 20 77 |e readab|le and w|
|00002d00| 72 69 74 61 62 6c 65 20 | 73 74 72 65 61 6d 73 2c |ritable |streams,|
|00002d10| 20 74 68 61 74 20 74 68 | 65 79 20 69 6e 68 65 72 | that th|ey inher|
|00002d20| 69 74 20 74 68 65 69 72 | 20 62 61 73 65 20 63 6c |it their| base cl|
|00002d30| 61 73 73 20 3c 3c 20 61 | 6e 64 20 3e 3e 20 6f 70 |ass << a|nd >> op|
|00002d40| 65 72 61 74 6f 72 73 20 | 66 6f 72 20 62 75 69 6c |erators |for buil|
|00002d50| 74 2d 69 6e 20 74 79 70 | 65 73 2e 0d 41 72 63 68 |t-in typ|es..Arch|
|00002d60| 69 76 69 6e 67 20 73 74 | 61 74 69 63 20 63 6c 61 |iving st|atic cla|
|00002d70| 73 73 65 73 20 62 79 20 | 72 65 66 65 72 65 6e 63 |sses by |referenc|
|00002d80| 65 0d 49 66 20 79 6f 75 | 20 68 61 76 65 20 69 6e |e.If you| have in|
|00002d90| 73 74 61 6e 63 65 73 20 | 6f 66 20 6c 61 72 67 65 |stances |of large|
|00002da0| 20 6f 62 6a 65 63 74 73 | 20 6f 66 20 73 74 61 74 | objects| of stat|
|00002db0| 69 63 20 63 6c 61 73 73 | 65 73 20 74 68 61 74 20 |ic class|es that |
|00002dc0| 61 72 65 20 73 68 61 72 | 65 64 20 28 6d 6f 72 65 |are shar|ed (more|
|00002dd0| 20 74 68 61 6e 20 6f 6e | 65 20 6f 62 6a 65 63 74 | than on|e object|
|00002de0| 20 72 65 66 65 72 20 74 | 6f 20 74 68 65 20 73 61 | refer t|o the sa|
|00002df0| 6d 65 20 6f 62 6a 65 63 | 74 20 69 6e 73 74 61 6e |me objec|t instan|
|00002e00| 63 65 29 2c 20 79 6f 75 | 20 6d 61 79 20 63 68 6f |ce), you| may cho|
|00002e10| 6f 73 65 20 74 6f 20 61 | 72 63 68 69 76 65 20 74 |ose to a|rchive t|
|00002e20| 68 65 20 6f 62 6a 65 63 | 74 20 62 79 20 72 65 66 |he objec|t by ref|
|00002e30| 65 72 65 6e 63 65 2e 20 | 54 68 69 73 20 63 61 75 |erence. |This cau|
|00002e40| 73 65 73 20 74 68 65 20 | 61 72 63 68 69 76 65 27 |ses the |archive'|
|00002e50| 73 20 6f 62 6a 65 63 74 | 20 72 65 67 69 73 74 72 |s object| registr|
|00002e60| 79 20 74 6f 20 62 65 20 | 75 73 65 64 2e 20 0d 41 |y to be |used. .A|
|00002e70| 72 63 68 69 76 69 6e 67 | 20 62 79 20 72 65 66 65 |rchiving| by refe|
|00002e80| 72 65 6e 63 65 20 72 65 | 73 75 6c 74 73 20 69 6e |rence re|sults in|
|00002e90| 20 61 20 73 68 61 72 65 | 64 20 6f 62 6a 65 63 74 | a share|d object|
|00002ea0| 27 73 20 69 6d 61 67 65 | 20 62 65 69 6e 67 20 77 |'s image| being w|
|00002eb0| 72 69 74 74 65 6e 20 6f | 75 74 20 6f 6e 6c 79 20 |ritten o|ut only |
|00002ec0| 6f 6e 63 65 20 74 6f 20 | 74 68 65 20 61 72 63 68 |once to |the arch|
|00002ed0| 69 76 65 2e 20 53 75 62 | 73 65 71 75 65 6e 74 20 |ive. Sub|sequent |
|00002ee0| 61 72 63 68 69 76 69 6e | 67 20 6f 66 20 74 68 65 |archivin|g of the|
|00002ef0| 20 73 61 6d 65 20 6f 62 | 6a 65 63 74 20 77 72 69 | same ob|ject wri|
|00002f00| 74 65 73 20 72 65 66 65 | 72 65 6e 63 65 73 20 74 |tes refe|rences t|
|00002f10| 6f 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 6c 79 |o the pr|eviously|
|00002f20| 20 61 72 63 68 69 76 65 | 64 20 6f 62 6a 65 63 74 | archive|d object|
|00002f30| 2c 20 69 6e 73 74 65 61 | 64 20 6f 66 20 77 72 69 |, instea|d of wri|
|00002f40| 74 69 6e 67 20 64 75 70 | 6c 69 63 61 74 65 20 69 |ting dup|licate i|
|00002f50| 6d 61 67 65 73 20 6f 66 | 20 74 68 61 74 20 6f 62 |mages of| that ob|
|00002f60| 6a 65 63 74 2e 0d 54 6f | 20 65 6e 61 62 6c 65 20 |ject..To| enable |
|00002f70| 61 6e 20 6f 62 6a 65 63 | 74 20 6f 66 20 61 20 73 |an objec|t of a s|
|00002f80| 74 61 74 69 63 20 63 6c | 61 73 73 20 74 6f 20 62 |tatic cl|ass to b|
|00002f90| 65 20 61 72 63 68 69 76 | 61 62 6c 65 20 62 79 20 |e archiv|able by |
|00002fa0| 72 65 66 65 72 65 6e 63 | 65 2c 20 79 6f 75 20 6d |referenc|e, you m|
|00002fb0| 75 73 74 20 63 72 65 61 | 74 65 20 73 70 65 63 69 |ust crea|te speci|
|00002fc0| 61 6c 69 7a 61 74 69 6f | 6e 73 20 6f 66 20 74 68 |alizatio|ns of th|
|00002fd0| 65 20 63 6c 61 73 73 20 | 74 65 6d 70 6c 61 74 65 |e class |template|
|00002fe0| 20 46 57 5f 54 53 74 61 | 74 69 63 41 72 63 68 69 | FW_TSta|ticArchi|
|00002ff0| 76 65 72 20 6d 65 74 68 | 6f 64 73 20 44 6f 57 72 |ver meth|ods DoWr|
|00003000| 69 74 65 4f 62 6a 65 63 | 74 20 61 6e 64 20 44 6f |iteObjec|t and Do|
|00003010| 52 65 61 64 4f 62 6a 65 | 63 74 2e 20 59 6f 75 72 |ReadObje|ct. Your|
|00003020| 20 44 6f 57 72 69 74 65 | 4f 62 6a 65 63 74 20 6d | DoWrite|Object m|
|00003030| 65 74 68 6f 64 20 73 68 | 6f 75 6c 64 20 77 72 69 |ethod sh|ould wri|
|00003040| 74 65 20 6f 75 74 20 74 | 68 65 20 66 69 65 6c 64 |te out t|he field|
|00003050| 73 20 6f 66 20 74 68 65 | 20 6f 62 6a 65 63 74 2e |s of the| object.|
|00003060| 20 59 6f 75 72 20 44 6f | 52 65 61 64 4f 62 6a 65 | Your Do|ReadObje|
|00003070| 63 74 20 73 68 6f 75 6c | 64 20 61 6c 6c 6f 63 61 |ct shoul|d alloca|
|00003080| 74 65 20 74 68 65 20 73 | 70 61 63 65 20 66 6f 72 |te the s|pace for|
|00003090| 20 74 68 65 20 6f 62 6a | 65 63 74 20 61 6e 64 20 | the obj|ect and |
|000030a0| 72 65 61 64 20 69 6e 20 | 74 68 65 20 66 69 65 6c |read in |the fiel|
|000030b0| 64 73 20 6f 66 20 74 68 | 65 20 6f 62 6a 65 63 74 |ds of th|e object|
|000030c0| 2e 0d 54 6f 20 77 72 69 | 74 65 20 6f 75 74 20 61 |..To wri|te out a|
|000030d0| 6e 20 6f 62 6a 65 63 74 | 20 62 79 20 72 65 66 65 |n object| by refe|
|000030e0| 72 65 6e 63 65 20 63 61 | 6c 6c 20 74 68 65 20 6d |rence ca|ll the m|
|000030f0| 65 74 68 6f 64 3a 0d 46 | 57 5f 54 53 74 61 74 69 |ethod:.F|W_TStati|
|00003100| 63 41 72 63 68 69 76 65 | 72 3c 59 6f 75 72 5f 43 |cArchive|r<Your_C|
|00003110| 6c 61 73 73 5f 54 79 70 | 65 3e 3a 3a 0d 57 72 69 |lass_Typ|e>::.Wri|
|00003120| 74 65 53 74 61 74 69 63 | 4f 62 6a 65 63 74 28 77 |teStatic|Object(w|
|00003130| 72 69 74 61 62 6c 65 41 | 72 63 68 69 76 65 2c 20 |ritableA|rchive, |
|00003140| 6f 62 6a 65 63 74 29 3b | 0d 54 68 65 20 57 72 69 |object);|.The Wri|
|00003150| 74 65 53 74 61 74 69 63 | 4f 62 6a 65 63 74 20 6d |teStatic|Object m|
|00003160| 65 74 68 6f 64 20 63 68 | 65 63 6b 73 20 69 66 20 |ethod ch|ecks if |
|00003170| 74 68 65 20 6f 62 6a 65 | 63 74 20 69 73 20 69 6e |the obje|ct is in|
|00003180| 20 74 68 65 20 72 75 6e | 2d 74 69 6d 65 20 6f 62 | the run|-time ob|
|00003190| 6a 65 63 74 20 72 65 67 | 69 73 74 72 79 2e 20 0d |ject reg|istry. .|
|000031a0| a5 09 49 66 20 69 74 20 | 69 73 6e 27 74 20 69 6e |..If it |isn't in|
|000031b0| 20 74 68 65 20 72 65 67 | 69 73 74 72 79 2c 20 69 | the reg|istry, i|
|000031c0| 74 20 65 6e 74 65 72 73 | 20 74 68 65 20 6f 62 6a |t enters| the obj|
|000031d0| 65 63 74 20 69 6e 20 74 | 68 65 20 6f 62 6a 65 63 |ect in t|he objec|
|000031e0| 74 20 72 65 67 69 73 74 | 72 79 2c 20 77 72 69 74 |t regist|ry, writ|
|000031f0| 65 73 20 6f 75 74 20 61 | 20 54 41 47 20 72 65 63 |es out a| TAG rec|
|00003200| 6f 72 64 20 74 68 61 74 | 20 73 61 79 73 2c 20 d2 |ord that| says, .|
|00003210| 68 65 72 65 20 69 73 20 | 74 68 65 20 49 44 20 6f |here is |the ID o|
|00003220| 66 20 74 68 69 73 20 6f | 62 6a 65 63 74 3b 20 69 |f this o|bject; i|
|00003230| 74 73 20 69 6d 61 67 65 | 20 66 6f 6c 6c 6f 77 73 |ts image| follows|
|00003240| d3 2c 20 61 6e 64 20 74 | 68 65 6e 20 63 61 6c 6c |., and t|hen call|
|00003250| 73 20 79 6f 75 72 20 44 | 6f 57 72 69 74 65 4f 62 |s your D|oWriteOb|
|00003260| 6a 65 63 74 20 6d 65 74 | 68 6f 64 20 74 6f 20 77 |ject met|hod to w|
|00003270| 72 69 74 65 20 6f 75 74 | 20 74 68 65 20 6f 62 6a |rite out| the obj|
|00003280| 65 63 74 27 73 20 69 6d | 61 67 65 2e 20 0d a5 09 |ect's im|age. ...|
|00003290| 49 66 20 74 68 65 20 6f | 62 6a 65 63 74 20 69 73 |If the o|bject is|
|000032a0| 20 69 6e 20 74 68 65 20 | 72 65 67 69 73 74 72 79 | in the |registry|
|000032b0| 2c 20 69 74 20 77 72 69 | 74 65 73 20 6f 75 74 20 |, it wri|tes out |
|000032c0| 61 20 54 41 47 20 72 65 | 63 6f 72 64 20 74 68 61 |a TAG re|cord tha|
|000032d0| 74 20 73 61 79 73 20 d2 | 74 68 69 73 20 6f 62 6a |t says .|this obj|
|000032e0| 65 63 74 20 72 65 66 65 | 72 73 20 74 6f 20 74 68 |ect refe|rs to th|
|000032f0| 65 20 70 72 65 76 69 6f | 75 73 6c 79 20 77 72 69 |e previo|usly wri|
|00003300| 74 74 65 6e 20 6f 62 6a | 65 63 74 20 77 69 74 68 |tten obj|ect with|
|00003310| 20 74 68 69 73 20 49 44 | d3 2e 20 49 6e 20 74 68 | this ID|.. In th|
|00003320| 69 73 20 63 61 73 65 20 | 79 6f 75 72 20 44 6f 57 |is case |your DoW|
|00003330| 72 69 74 65 4f 62 6a 65 | 63 74 20 6d 65 74 68 6f |riteObje|ct metho|
|00003340| 64 20 69 73 20 6e 6f 74 | 20 63 61 6c 6c 65 64 2e |d is not| called.|
|00003350| 0d 54 6f 20 72 65 61 64 | 20 69 6e 20 61 6e 20 6f |.To read| in an o|
|00003360| 62 6a 65 63 74 20 63 61 | 6c 6c 20 74 68 65 20 6d |bject ca|ll the m|
|00003370| 65 74 68 6f 64 3a 0d 6f | 62 6a 65 63 74 20 3d 20 |ethod:.o|bject = |
|00003380| 46 57 5f 54 53 74 61 74 | 69 63 41 72 63 68 69 76 |FW_TStat|icArchiv|
|00003390| 65 72 3c 59 6f 75 72 5f | 43 6c 61 73 73 5f 54 79 |er<Your_|Class_Ty|
|000033a0| 70 65 3e 3a 3a 0d 09 09 | 09 52 65 61 64 53 74 61 |pe>::...|.ReadSta|
|000033b0| 74 69 63 4f 62 6a 65 63 | 74 28 72 65 61 64 61 62 |ticObjec|t(readab|
|000033c0| 6c 65 41 72 63 68 69 76 | 65 29 3b 0d 54 68 65 20 |leArchiv|e);.The |
|000033d0| 52 65 61 64 53 74 61 74 | 69 63 4f 62 6a 65 63 74 |ReadStat|icObject|
|000033e0| 20 6d 65 74 68 6f 64 20 | 72 65 61 64 73 20 74 68 | method |reads th|
|000033f0| 65 20 54 41 47 20 72 65 | 63 6f 72 64 20 66 72 6f |e TAG re|cord fro|
|00003400| 6d 20 74 68 65 20 61 72 | 63 68 69 76 65 20 61 6e |m the ar|chive an|
|00003410| 64 20 64 65 74 65 72 6d | 69 6e 65 73 20 77 68 65 |d determ|ines whe|
|00003420| 74 68 65 72 20 74 68 65 | 20 6f 62 6a 65 63 74 20 |ther the| object |
|00003430| 68 61 73 20 62 65 65 6e | 20 70 72 65 76 69 6f 75 |has been| previou|
|00003440| 73 6c 79 20 72 65 61 64 | 20 69 6e 20 28 61 6e 64 |sly read| in (and|
|00003450| 20 69 73 20 74 68 65 72 | 65 66 6f 72 65 20 61 6c | is ther|efore al|
|00003460| 72 65 61 64 79 20 69 6e | 20 74 68 65 20 6f 62 6a |ready in| the obj|
|00003470| 65 63 74 20 72 65 67 69 | 73 74 72 79 29 20 6f 72 |ect regi|stry) or|
|00003480| 20 6e 65 65 64 73 20 74 | 6f 20 63 61 6c 6c 20 79 | needs t|o call y|
|00003490| 6f 75 72 20 44 6f 52 65 | 61 64 4f 62 6a 65 63 74 |our DoRe|adObject|
|000034a0| 20 6d 65 74 68 6f 64 20 | 74 6f 20 63 72 65 61 74 | method |to creat|
|000034b0| 65 20 74 68 65 20 6f 62 | 6a 65 63 74 20 61 6e 64 |e the ob|ject and|
|000034c0| 20 74 68 65 6e 20 65 6e | 74 65 72 20 74 68 65 20 | then en|ter the |
|000034d0| 6f 62 6a 65 63 74 27 73 | 20 61 64 64 72 65 73 73 |object's| address|
|000034e0| 20 61 6e 64 20 49 44 20 | 69 6e 74 6f 20 74 68 65 | and ID |into the|
|000034f0| 20 6f 62 6a 65 63 74 20 | 72 65 67 69 73 74 72 79 | object |registry|
|00003500| 2e 0d 59 6f 75 20 6d 61 | 79 20 63 68 6f 6f 73 65 |..You ma|y choose|
|00003510| 20 74 6f 20 63 72 65 61 | 74 65 20 61 20 67 6c 6f | to crea|te a glo|
|00003520| 62 61 6c 20 6d 65 74 68 | 6f 64 20 66 6f 72 20 6f |bal meth|od for o|
|00003530| 70 65 72 61 74 6f 72 20 | 3c 3c 20 74 68 61 74 20 |perator |<< that |
|00003540| 63 61 6c 6c 73 20 74 68 | 65 20 57 72 69 74 65 53 |calls th|e WriteS|
|00003550| 74 61 74 69 63 4f 62 6a | 65 63 74 20 6d 65 74 68 |taticObj|ect meth|
|00003560| 6f 64 20 61 6e 64 20 61 | 20 67 6c 6f 62 61 6c 20 |od and a| global |
|00003570| 6d 65 74 68 6f 64 20 66 | 6f 72 20 6f 70 65 72 61 |method f|or opera|
|00003580| 74 6f 72 20 3e 3e 20 74 | 68 61 74 20 63 61 6c 6c |tor >> t|hat call|
|00003590| 73 20 52 65 61 64 53 74 | 61 74 69 63 4f 62 6a 65 |s ReadSt|aticObje|
|000035a0| 63 74 20 6d 65 74 68 6f | 64 2e 0d 41 72 63 68 69 |ct metho|d..Archi|
|000035b0| 76 69 6e 67 20 6f 62 6a | 65 63 74 73 20 6f 66 20 |ving obj|ects of |
|000035c0| 64 79 6e 61 6d 69 63 20 | 63 6c 61 73 73 65 73 0d |dynamic |classes.|
|000035d0| 50 65 72 66 6f 72 6d 20 | 74 68 65 20 66 6f 6c 6c |Perform |the foll|
|000035e0| 6f 77 69 6e 67 20 73 74 | 65 70 73 20 74 6f 20 61 |owing st|eps to a|
|000035f0| 72 63 68 69 76 65 20 64 | 79 6e 61 6d 69 63 20 6f |rchive d|ynamic o|
|00003600| 62 6a 65 63 74 73 20 6f | 66 20 79 6f 75 72 20 6f |bjects o|f your o|
|00003610| 77 6e 20 74 79 70 65 3a | 0d 09 31 2e 09 45 6e 73 |wn type:|..1..Ens|
|00003620| 75 72 65 20 74 68 65 20 | 64 79 6e 61 6d 69 63 20 |ure the |dynamic |
|00003630| 63 6c 61 73 73 20 68 61 | 73 20 52 54 54 49 20 73 |class ha|s RTTI s|
|00003640| 75 70 70 6f 72 74 2e 0d | 09 32 2e 09 43 72 65 61 |upport..|.2..Crea|
|00003650| 74 65 20 61 6e 20 6f 75 | 74 70 75 74 20 66 75 6e |te an ou|tput fun|
|00003660| 63 74 69 6f 6e 20 77 69 | 74 68 20 61 20 73 69 67 |ction wi|th a sig|
|00003670| 6e 61 74 75 72 65 20 74 | 68 61 74 20 6d 61 74 63 |nature t|hat matc|
|00003680| 68 65 73 20 74 68 65 20 | 74 79 70 65 64 65 66 20 |hes the |typedef |
|00003690| 46 57 5f 43 57 72 69 74 | 61 62 6c 65 41 72 63 68 |FW_CWrit|ableArch|
|000036a0| 69 76 65 3a 3a 4f 75 74 | 70 75 74 2d 46 75 6e 63 |ive::Out|put-Func|
|000036b0| 74 69 6f 6e 20 73 68 6f | 77 6e 20 62 65 6c 6f 77 |tion sho|wn below|
|000036c0| 2e 20 52 65 66 65 72 20 | 74 6f 20 4f 75 74 70 75 |. Refer |to Outpu|
|000036d0| 74 46 75 6e 63 74 69 6f | 6e 20 74 79 70 65 64 65 |tFunctio|n typede|
|000036e0| 66 20 66 6f 72 20 64 65 | 74 61 69 6c 73 2e 0d 0d |f for de|tails...|
|000036f0| 09 74 79 70 65 64 65 66 | 20 76 6f 69 64 20 28 2a |.typedef| void (*|
|00003700| 20 4f 75 74 70 75 74 46 | 75 6e 63 74 69 6f 6e 29 | OutputF|unction)|
|00003710| 20 28 46 57 5f 43 57 72 | 69 74 61 62 6c 65 41 72 | (FW_CWr|itableAr|
|00003720| 63 68 69 76 65 20 26 20 | 61 72 63 68 69 76 65 2c |chive & |archive,|
|00003730| 20 63 6f 6e 73 74 20 76 | 6f 69 64 20 2a 6f 62 6a | const v|oid *obj|
|00003740| 65 63 74 29 3b 0d 09 33 | 2e 09 43 72 65 61 74 65 |ect);..3|..Create|
|00003750| 20 61 6e 20 69 6e 70 75 | 74 20 66 75 6e 63 74 69 | an inpu|t functi|
|00003760| 6f 6e 20 77 69 74 68 20 | 61 20 73 69 67 6e 61 74 |on with |a signat|
|00003770| 75 72 65 20 74 68 61 74 | 20 6d 61 74 63 68 65 73 |ure that| matches|
|00003780| 20 74 68 65 20 74 79 70 | 65 64 65 66 20 46 57 5f | the typ|edef FW_|
|00003790| 43 52 65 61 64 61 62 6c | 65 41 72 63 68 69 76 65 |CReadabl|eArchive|
|000037a0| 3a 3a 49 6e 70 75 74 2d | 46 75 6e 63 74 69 6f 6e |::Input-|Function|
|000037b0| 20 73 68 6f 77 6e 20 62 | 65 6c 6f 77 2e 20 54 68 | shown b|elow. Th|
|000037c0| 65 20 69 6e 70 75 74 20 | 66 75 6e 63 74 69 6f 6e |e input |function|
|000037d0| 20 73 68 6f 75 6c 64 20 | 61 6c 6c 6f 63 61 74 65 | should |allocate|
|000037e0| 20 73 70 61 63 65 20 6f | 6e 20 74 68 65 20 68 65 | space o|n the he|
|000037f0| 61 70 20 66 6f 72 20 74 | 68 65 20 6f 62 6a 65 63 |ap for t|he objec|
|00003800| 74 20 61 6e 64 20 63 6f | 6e 73 74 72 75 63 74 20 |t and co|nstruct |
|00003810| 74 68 65 20 6f 62 6a 65 | 63 74 2e 20 52 65 66 65 |the obje|ct. Refe|
|00003820| 72 20 74 6f 20 49 6e 70 | 75 74 46 75 6e 63 74 69 |r to Inp|utFuncti|
|00003830| 6f 6e 20 74 79 70 65 64 | 65 66 20 66 6f 72 20 64 |on typed|ef for d|
|00003840| 65 74 61 69 6c 73 2e 0d | 0d 09 74 79 70 65 64 65 |etails..|..typede|
|00003850| 66 20 76 6f 69 64 2a 20 | 28 2a 20 49 6e 70 75 74 |f void* |(* Input|
|00003860| 46 75 6e 63 74 69 6f 6e | 29 20 28 46 57 5f 43 52 |Function|) (FW_CR|
|00003870| 65 61 64 61 62 6c 65 41 | 72 63 68 69 76 65 26 20 |eadableA|rchive& |
|00003880| 72 65 61 64 61 62 6c 65 | 41 72 63 68 69 76 65 29 |readable|Archive)|
|00003890| 3b 0d 09 34 2e 09 49 6e | 76 6f 6b 65 20 74 68 65 |;..4..In|voke the|
|000038a0| 20 6d 61 63 72 6f 20 46 | 57 5f 52 45 47 49 53 54 | macro F|W_REGIST|
|000038b0| 45 52 5f 41 52 43 48 49 | 56 45 5f 43 4c 41 53 53 |ER_ARCHI|VE_CLASS|
|000038c0| 2e 20 54 68 69 73 20 6d | 61 63 72 6f 20 64 65 66 |. This m|acro def|
|000038d0| 69 6e 65 73 20 61 20 63 | 6c 61 73 73 20 6c 61 62 |ines a c|lass lab|
|000038e0| 65 6c 20 61 6e 64 20 61 | 73 73 6f 63 69 61 74 65 |el and a|ssociate|
|000038f0| 73 20 74 68 69 73 20 6c | 61 62 65 6c 20 77 69 74 |s this l|abel wit|
|00003900| 68 20 69 74 73 20 63 6c | 61 73 73 20 74 79 70 65 |h its cl|ass type|
|00003910| 20 61 6e 64 20 69 74 73 | 20 69 6e 70 75 74 20 61 | and its| input a|
|00003920| 6e 64 20 6f 75 74 70 75 | 74 20 66 75 6e 63 74 69 |nd outpu|t functi|
|00003930| 6f 6e 73 2e 20 49 6e 20 | 74 68 65 20 64 65 63 6c |ons. In |the decl|
|00003940| 61 72 61 74 69 6f 6e 20 | 62 65 6c 6f 77 3a 0d 0d |aration |below:..|
|00003950| 63 6c 61 73 73 4c 61 62 | 65 6c 20 69 73 20 61 6e |classLab|el is an|
|00003960| 79 20 63 6f 6e 76 65 6e | 69 65 6e 74 20 6c 61 62 |y conven|ient lab|
|00003970| 65 6c 20 66 6f 72 20 79 | 6f 75 72 20 63 6c 61 73 |el for y|our clas|
|00003980| 73 2e 20 0d 0d 63 6c 61 | 73 73 54 79 70 65 20 69 |s. ..cla|ssType i|
|00003990| 73 20 74 68 65 20 63 6c | 61 73 73 20 74 79 70 65 |s the cl|ass type|
|000039a0| 20 79 6f 75 20 68 61 76 | 65 20 61 73 73 69 67 6e | you hav|e assign|
|000039b0| 65 64 20 74 6f 20 79 6f | 75 72 20 63 6c 61 73 73 |ed to yo|ur class|
|000039c0| 2e 0d 0d 69 6e 70 75 74 | 46 75 6e 63 74 69 6f 6e |...input|Function|
|000039d0| 20 61 6e 64 20 6f 75 74 | 70 75 74 46 75 6e 63 74 | and out|putFunct|
|000039e0| 69 6f 6e 20 61 72 65 20 | 66 75 6e 63 74 69 6f 6e |ion are |function|
|000039f0| 73 20 79 6f 75 20 63 72 | 65 61 74 65 64 20 75 6e |s you cr|eated un|
|00003a00| 64 65 72 20 73 74 65 70 | 73 20 74 77 6f 20 61 6e |der step|s two an|
|00003a10| 64 20 74 68 72 65 65 2c | 20 77 68 69 63 68 20 63 |d three,| which c|
|00003a20| 6f 6e 66 6f 72 6d 20 74 | 6f 20 74 79 70 65 64 65 |onform t|o typede|
|00003a30| 66 20 73 79 6e 74 61 78 | 2e 0d 0d 46 57 5f 52 45 |f syntax|...FW_RE|
|00003a40| 47 49 53 54 45 52 5f 41 | 52 43 48 49 56 45 5f 43 |GISTER_A|RCHIVE_C|
|00003a50| 4c 41 53 53 28 63 6c 61 | 73 73 4c 61 62 65 6c 2c |LASS(cla|ssLabel,|
|00003a60| 20 63 6c 61 73 73 54 79 | 70 65 2c 20 69 6e 70 75 | classTy|pe, inpu|
|00003a70| 74 46 75 6e 63 74 69 6f | 6e 2c 20 6f 75 74 70 75 |tFunctio|n, outpu|
|00003a80| 74 46 75 6e 63 74 69 6f | 6e 29 20 0d 49 66 20 79 |tFunctio|n) .If y|
|00003a90| 6f 75 72 20 63 6c 61 73 | 73 20 74 79 70 65 20 6e |our clas|s type n|
|00003aa0| 61 6d 65 20 63 6f 6e 74 | 61 69 6e 73 20 61 20 63 |ame cont|ains a c|
|00003ab0| 6f 6d 6d 61 20 28 27 2c | 27 29 2c 20 79 6f 75 20 |omma (',|'), you |
|00003ac0| 6d 75 73 74 20 64 65 66 | 69 6e 65 20 61 20 74 79 |must def|ine a ty|
|00003ad0| 70 65 64 65 66 20 66 6f | 72 20 74 68 65 20 63 6c |pedef fo|r the cl|
|00003ae0| 61 73 73 20 61 6e 64 20 | 75 73 65 20 74 68 65 20 |ass and |use the |
|00003af0| 6e 61 6d 65 20 6f 66 20 | 74 68 69 73 20 74 79 70 |name of |this typ|
|00003b00| 65 64 65 66 20 77 68 65 | 6e 20 69 6e 76 6f 6b 69 |edef whe|n invoki|
|00003b10| 6e 67 20 74 68 65 20 46 | 57 5f 52 45 47 49 53 54 |ng the F|W_REGIST|
|00003b20| 45 52 5f 41 52 43 48 49 | 56 45 5f 43 4c 41 53 53 |ER_ARCHI|VE_CLASS|
|00003b30| 20 6d 61 63 72 6f 2e 20 | 43 6c 61 73 73 20 74 65 | macro. |Class te|
|00003b40| 6d 70 6c 61 74 65 73 20 | 6f 66 74 65 6e 20 75 73 |mplates |often us|
|00003b50| 65 20 63 6f 6d 6d 61 73 | 2e 0d 09 35 2e 09 50 65 |e commas|...5..Pe|
|00003b60| 72 66 6f 72 6d 20 74 68 | 69 73 20 73 74 65 70 20 |rform th|is step |
|00003b70| 69 66 20 79 6f 75 20 68 | 61 76 65 20 61 72 63 68 |if you h|ave arch|
|00003b80| 69 76 61 62 6c 65 20 64 | 79 6e 61 6d 69 63 20 63 |ivable d|ynamic c|
|00003b90| 6c 61 73 73 65 73 20 74 | 68 61 74 20 77 69 6c 6c |lasses t|hat will|
|00003ba0| 20 62 65 20 70 61 72 74 | 20 6f 66 20 61 20 73 68 | be part| of a sh|
|00003bb0| 61 72 65 64 20 6c 69 62 | 72 61 72 79 20 28 66 6f |ared lib|rary (fo|
|00003bc0| 72 20 65 78 61 6d 70 6c | 65 2c 20 61 20 44 4c 4c |r exampl|e, a DLL|
|00003bd0| 29 2e 20 4f 74 68 65 72 | 77 69 73 65 2c 20 67 6f |). Other|wise, go|
|00003be0| 20 74 6f 20 73 74 65 70 | 20 36 2e 0d 0d 61 2e 20 | to step| 6...a. |
|00003bf0| 53 74 61 74 69 63 61 6c | 6c 79 20 6c 69 6e 6b 20 |Statical|ly link |
|00003c00| 74 68 65 20 46 57 4c 6f | 63 4d 61 70 2e 6f 62 6a |the FWLo|cMap.obj|
|00003c10| 20 6f 62 6a 65 63 74 20 | 66 69 6c 65 20 69 6e 74 | object |file int|
|00003c20| 6f 20 79 6f 75 72 20 73 | 68 61 72 65 64 20 6c 69 |o your s|hared li|
|00003c30| 62 72 61 72 79 2e 20 0d | 0d 62 2e 20 50 72 6f 76 |brary. .|.b. Prov|
|00003c40| 69 64 65 20 61 20 75 6e | 69 71 75 65 6c 79 20 6e |ide a un|iquely n|
|00003c50| 61 6d 65 64 20 69 6e 69 | 74 69 61 6c 69 7a 61 74 |amed ini|tializat|
|00003c60| 69 6f 6e 20 6d 65 74 68 | 6f 64 20 69 6e 20 79 6f |ion meth|od in yo|
|00003c70| 75 72 20 73 68 61 72 65 | 64 20 6c 69 62 72 61 72 |ur share|d librar|
|00003c80| 79 2e 20 0d 0d 63 2e 20 | 46 72 6f 6d 20 74 68 69 |y. ..c. |From thi|
|00003c90| 73 20 69 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e |s initia|lization|
|00003ca0| 20 6d 65 74 68 6f 64 2c | 20 6d 61 6b 65 20 74 68 | method,| make th|
|00003cb0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 61 6c 6c |e follow|ing call|
|00003cc0| 3a 0d 0d 46 57 5f 43 44 | 79 6e 61 6d 69 63 41 72 |:..FW_CD|ynamicAr|
|00003cd0| 63 68 69 76 65 72 3a 3a | 4d 65 72 67 65 41 72 63 |chiver::|MergeArc|
|00003ce0| 68 69 76 65 72 4d 61 70 | 73 28 29 3b 0d 0d 59 6f |hiverMap|s();..Yo|
|00003cf0| 75 20 6d 75 73 74 20 74 | 65 6c 6c 20 79 6f 75 72 |u must t|ell your|
|00003d00| 20 73 68 61 72 65 64 20 | 6c 69 62 72 61 72 79 20 | shared |library |
|00003d10| 75 73 65 72 73 20 74 6f | 20 63 61 6c 6c 20 74 68 |users to| call th|
|00003d20| 69 73 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |is initi|alizatio|
|00003d30| 6e 20 6d 65 74 68 6f 64 | 20 62 65 66 6f 72 65 20 |n method| before |
|00003d40| 75 73 69 6e 67 20 74 68 | 65 20 6c 69 62 72 61 72 |using th|e librar|
|00003d50| 79 2e 0d 09 36 2e 09 50 | 65 72 66 6f 72 6d 20 74 |y...6..P|erform t|
|00003d60| 68 69 73 20 73 74 65 70 | 20 69 66 20 79 6f 75 72 |his step| if your|
|00003d70| 20 61 72 63 68 69 76 61 | 62 6c 65 20 64 79 6e 61 | archiva|ble dyna|
|00003d80| 6d 69 63 20 63 6c 61 73 | 73 20 69 73 20 70 61 72 |mic clas|s is par|
|00003d90| 74 20 6f 66 20 79 6f 75 | 72 20 70 61 72 74 2e 0d |t of you|r part..|
|00003da0| 0d 61 2e 20 4c 69 6e 6b | 20 74 68 65 20 46 57 4c |.a. Link| the FWL|
|00003db0| 6f 63 4d 61 70 2e 6f 62 | 6a 20 6f 62 6a 65 63 74 |ocMap.ob|j object|
|00003dc0| 20 66 69 6c 65 20 69 6e | 74 6f 20 79 6f 75 72 20 | file in|to your |
|00003dd0| 70 61 72 74 2e 20 0d 0d | 62 2e 20 57 68 65 6e 20 |part. ..|b. When |
|00003de0| 79 6f 75 72 20 70 61 72 | 74 20 73 74 61 72 74 73 |your par|t starts|
|00003df0| 20 75 70 2c 20 63 61 6c | 6c 3a 0d 0d 46 57 5f 43 | up, cal|l:..FW_C|
|00003e00| 44 79 6e 61 6d 69 63 41 | 72 63 68 69 76 65 72 3a |DynamicA|rchiver:|
|00003e10| 3a 4d 65 72 67 65 41 72 | 63 68 69 76 65 72 4d 61 |:MergeAr|chiverMa|
|00003e20| 70 73 28 29 3b 0d 48 61 | 76 69 6e 67 20 63 6f 6d |ps();.Ha|ving com|
|00003e30| 70 6c 65 74 65 64 20 74 | 68 65 20 73 74 65 70 73 |pleted t|he steps|
|00003e40| 20 61 62 6f 76 65 2c 20 | 79 6f 75 20 6d 61 79 20 | above, |you may |
|00003e50| 6e 6f 77 20 61 72 63 68 | 69 76 65 20 6f 62 6a 65 |now arch|ive obje|
|00003e60| 63 74 73 20 6f 66 20 64 | 79 6e 61 6d 69 63 20 63 |cts of d|ynamic c|
|00003e70| 6c 61 73 73 65 73 2e 20 | 46 57 41 72 4f 70 65 72 |lasses. |FWArOper|
|00003e80| 2e 68 20 64 65 66 69 6e | 65 73 20 67 6c 6f 62 61 |.h defin|es globa|
|00003e90| 6c 20 74 65 6d 70 6c 61 | 74 65 20 66 75 6e 63 74 |l templa|te funct|
|00003ea0| 69 6f 6e 73 20 66 6f 72 | 20 74 68 65 20 3c 3c 20 |ions for| the << |
|00003eb0| 61 6e 64 20 3e 3e 20 6f | 70 65 72 61 74 6f 72 73 |and >> o|perators|
|00003ec0| 2e 0d 46 6f 72 20 61 20 | 63 6f 6d 70 6c 65 74 65 |..For a |complete|
|00003ed0| 20 65 78 61 6d 70 6c 65 | 20 6f 66 20 68 6f 77 20 | example| of how |
|00003ee0| 64 79 6e 61 6d 69 63 20 | 61 72 63 68 69 76 69 6e |dynamic |archivin|
|00003ef0| 67 20 77 6f 72 6b 73 2c | 20 72 65 66 65 72 20 74 |g works,| refer t|
|00003f00| 6f 20 74 68 65 20 53 74 | 72 69 6e 67 20 63 6f 6d |o the St|ring com|
|00003f10| 70 6f 6e 65 6e 74 2c 20 | 77 68 69 63 68 20 75 73 |ponent, |which us|
|00003f20| 65 73 20 74 68 69 73 20 | 6d 65 63 68 61 6e 69 73 |es this |mechanis|
|00003f30| 6d 20 74 6f 20 61 72 63 | 68 69 76 65 20 74 68 65 |m to arc|hive the|
|00003f40| 20 63 6f 6e 63 72 65 74 | 65 20 73 74 72 69 6e 67 | concret|e string|
|00003f50| 20 63 6c 61 73 73 65 73 | 20 70 72 6f 76 69 64 65 | classes| provide|
|00003f60| 64 20 62 79 20 4f 50 46 | 2e 20 54 68 65 20 66 69 |d by OPF|. The fi|
|00003f70| 6c 65 73 20 46 57 53 74 | 72 67 41 72 2e 68 20 61 |les FWSt|rgAr.h a|
|00003f80| 6e 64 20 46 57 53 74 72 | 67 41 72 2e 63 70 70 20 |nd FWStr|gAr.cpp |
|00003f90| 69 6d 70 6c 65 6d 65 6e | 74 20 61 72 63 68 69 76 |implemen|t archiv|
|00003fa0| 69 6e 67 20 66 6f 72 20 | 74 68 65 73 65 20 64 79 |ing for |these dy|
|00003fb0| 6e 61 6d 69 63 20 63 6c | 61 73 73 65 73 2e 0d 41 |namic cl|asses..A|
|00003fc0| 64 64 69 6e 67 20 4f 50 | 46 20 61 72 63 68 69 76 |dding OP|F archiv|
|00003fd0| 69 6e 67 20 74 6f 20 74 | 68 69 72 64 2d 70 61 72 |ing to t|hird-par|
|00003fe0| 74 79 20 63 6f 6d 70 6f | 6e 65 6e 74 73 0d 4f 50 |ty compo|nents.OP|
|00003ff0| 46 20 72 65 6c 69 65 73 | 20 75 70 6f 6e 20 74 68 |F relies| upon th|
|00004000| 65 20 70 72 65 73 65 6e | 63 65 20 6f 66 20 52 54 |e presen|ce of RT|
|00004010| 54 49 20 28 52 75 6e 74 | 69 6d 65 20 54 79 70 65 |TI (Runt|ime Type|
|00004020| 20 49 64 65 6e 74 69 66 | 69 63 61 74 69 6f 6e 29 | Identif|ication)|
|00004030| 20 73 75 70 70 6f 72 74 | 20 77 68 65 6e 20 69 74 | support| when it|
|00004040| 20 61 72 63 68 69 76 65 | 73 20 64 79 6e 61 6d 69 | archive|s dynami|
|00004050| 63 20 63 6c 61 73 73 65 | 73 2e 20 53 70 65 63 69 |c classe|s. Speci|
|00004060| 66 69 63 61 6c 6c 79 2c | 20 4f 50 46 20 61 72 63 |fically,| OPF arc|
|00004070| 68 69 76 69 6e 67 20 72 | 65 6c 69 65 73 20 6f 6e |hiving r|elies on|
|00004080| 20 74 68 65 20 61 62 69 | 6c 69 74 79 20 74 6f 20 | the abi|lity to |
|00004090| 6f 62 74 61 69 6e 20 61 | 20 63 6c 61 73 73 20 6e |obtain a| class n|
|000040a0| 61 6d 65 20 66 72 6f 6d | 20 65 69 74 68 65 72 20 |ame from| either |
|000040b0| 61 20 63 6c 61 73 73 20 | 74 79 70 65 20 6f 72 20 |a class |type or |
|000040c0| 61 20 72 65 66 65 72 65 | 6e 63 65 20 74 6f 20 61 |a refere|nce to a|
|000040d0| 20 63 6c 61 73 73 2e 0d | 49 6e 20 65 6e 76 69 72 | class..|In envir|
|000040e0| 6f 6e 6d 65 6e 74 73 20 | 74 68 61 74 20 73 75 70 |onments |that sup|
|000040f0| 70 6f 72 74 20 52 54 54 | 49 20 28 61 74 20 74 68 |port RTT|I (at th|
|00004100| 65 20 74 69 6d 65 20 6f | 66 20 77 72 69 74 69 6e |e time o|f writin|
|00004110| 67 2c 20 6e 6f 20 63 6f | 6d 6d 65 72 63 69 61 6c |g, no co|mmercial|
|00004120| 6c 79 20 61 76 61 69 6c | 61 62 6c 65 20 63 6f 6d |ly avail|able com|
|00004130| 70 69 6c 65 72 73 20 73 | 75 70 70 6f 72 74 20 52 |pilers s|upport R|
|00004140| 54 54 49 29 2c 20 79 6f | 75 20 6d 61 79 20 61 72 |TTI), yo|u may ar|
|00004150| 63 68 69 76 65 20 74 68 | 69 72 64 2d 70 61 72 74 |chive th|ird-part|
|00004160| 79 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 77 69 74 |y compon|ents wit|
|00004170| 68 6f 75 74 20 6d 6f 64 | 69 66 69 63 61 74 69 6f |hout mod|ificatio|
|00004180| 6e 20 74 6f 20 74 68 65 | 20 63 6f 6d 70 6f 6e 65 |n to the| compone|
|00004190| 6e 74 27 73 20 73 6f 75 | 72 63 65 20 63 6f 64 65 |nt's sou|rce code|
|000041a0| 20 69 66 20 74 68 65 20 | 74 68 69 72 64 2d 70 61 | if the |third-pa|
|000041b0| 72 74 79 20 63 6c 61 73 | 73 65 73 20 70 72 6f 76 |rty clas|ses prov|
|000041c0| 69 64 65 20 73 75 66 66 | 69 63 69 65 6e 74 20 61 |ide suff|icient a|
|000041d0| 63 63 65 73 73 20 74 6f | 20 61 6e 20 6f 62 6a 65 |ccess to| an obje|
|000041e0| 63 74 27 73 20 73 74 61 | 74 65 20 69 6e 66 6f 72 |ct's sta|te infor|
|000041f0| 6d 61 74 69 6f 6e 2e 0d | 49 6e 20 65 6e 76 69 72 |mation..|In envir|
|00004200| 6f 6e 6d 65 6e 74 73 20 | 74 68 61 74 20 64 6f 6e |onments |that don|
|00004210| 27 74 20 73 75 70 70 6f | 72 74 20 52 54 54 49 20 |'t suppo|rt RTTI |
|00004220| 62 75 74 20 66 6f 72 20 | 77 68 69 63 68 20 79 6f |but for |which yo|
|00004230| 75 20 68 61 76 65 20 61 | 63 63 65 73 73 20 74 6f |u have a|ccess to|
|00004240| 20 74 68 65 20 73 6f 75 | 72 63 65 20 63 6f 64 65 | the sou|rce code|
|00004250| 20 6f 66 20 74 68 65 20 | 74 68 69 72 64 2d 70 61 | of the |third-pa|
|00004260| 72 74 79 20 63 6f 6d 70 | 6f 6e 65 6e 74 2c 20 4f |rty comp|onent, O|
|00004270| 50 46 20 70 72 6f 76 69 | 64 65 73 20 61 20 73 65 |PF provi|des a se|
|00004280| 74 20 6f 66 20 6d 61 63 | 72 6f 73 20 66 6f 72 20 |t of mac|ros for |
|00004290| 73 69 6d 75 6c 61 74 69 | 6e 67 20 52 54 54 49 20 |simulati|ng RTTI |
|000042a0| 73 75 70 70 6f 72 74 2e | 20 4d 6f 64 69 66 79 69 |support.| Modifyi|
|000042b0| 6e 67 20 74 68 65 20 73 | 6f 75 72 63 65 20 74 6f |ng the s|ource to|
|000042c0| 20 75 73 65 20 74 68 65 | 73 65 20 6d 61 63 72 6f | use the|se macro|
|000042d0| 73 20 77 69 6c 6c 20 65 | 6e 61 62 6c 65 20 79 6f |s will e|nable yo|
|000042e0| 75 20 74 6f 20 75 73 65 | 20 74 68 65 20 4f 50 46 |u to use| the OPF|
|000042f0| 20 61 72 63 68 69 76 69 | 6e 67 20 6d 65 63 68 61 | archivi|ng mecha|
|00004300| 6e 69 73 6d 2e 20 54 68 | 69 73 20 61 73 73 75 6d |nism. Th|is assum|
|00004310| 65 73 20 74 68 61 74 20 | 74 68 65 20 74 68 69 72 |es that |the thir|
|00004320| 64 2d 70 61 72 74 79 20 | 63 6c 61 73 73 65 73 20 |d-party |classes |
|00004330| 70 72 6f 76 69 64 65 20 | 73 75 66 66 69 63 69 65 |provide |sufficie|
|00004340| 6e 74 20 61 63 63 65 73 | 73 20 74 6f 20 61 6e 20 |nt acces|s to an |
|00004350| 6f 62 6a 65 63 74 27 73 | 20 73 74 61 74 65 2e 0d |object's| state..|
|00004360| 41 72 63 68 69 76 69 6e | 67 20 44 79 6e 61 6d 69 |Archivin|g Dynami|
|00004370| 63 20 4c 6f 61 64 20 4c | 69 62 72 61 72 79 20 28 |c Load L|ibrary (|
|00004380| 44 4c 4c 29 20 63 6c 61 | 73 73 65 73 0d 41 20 44 |DLL) cla|sses.A D|
|00004390| 4c 4c 20 63 6c 61 73 73 | 20 69 73 20 61 20 74 68 |LL class| is a th|
|000043a0| 69 72 64 20 70 61 72 74 | 79 20 63 6f 6d 70 6f 6e |ird part|y compon|
|000043b0| 65 6e 74 2c 20 61 6e 64 | 20 63 6f 6e 66 6f 72 6d |ent, and| conform|
|000043c0| 73 20 74 6f 20 63 6f 6d | 6d 65 6e 74 73 20 6d 61 |s to com|ments ma|
|000043d0| 64 65 20 69 6e 20 74 68 | 65 20 61 62 6f 76 65 20 |de in th|e above |
|000043e0| 73 65 63 74 69 6f 6e 2e | 0d 46 6f 72 20 61 20 70 |section.|.For a p|
|000043f0| 61 72 74 20 62 75 69 6c | 74 20 66 72 6f 6d 20 44 |art buil|t from D|
|00004400| 4c 4c 20 63 6c 61 73 73 | 65 73 2c 20 74 68 65 20 |LL class|es, the |
|00004410| 41 72 63 68 69 76 65 72 | 20 62 75 69 6c 64 73 20 |Archiver| builds |
|00004420| 74 77 6f 20 74 61 62 6c | 65 73 20 66 6f 72 20 65 |two tabl|es for e|
|00004430| 61 63 68 20 44 4c 4c 20 | 63 6c 61 73 73 2e 0d a5 |ach DLL |class...|
|00004440| 09 54 68 65 20 63 6c 61 | 73 73 20 6e 61 6d 65 20 |.The cla|ss name |
|00004450| 74 61 62 6c 65 20 61 73 | 73 6f 63 69 61 74 65 73 |table as|sociates|
|00004460| 20 61 20 63 6c 61 73 73 | 20 6e 61 6d 65 20 74 6f | a class| name to|
|00004470| 20 61 20 63 6c 61 73 73 | 20 6c 61 62 65 6c 2e 0d | a class| label..|
|00004480| a5 09 54 68 65 20 63 6c | 61 73 73 20 66 75 6e 63 |..The cl|ass func|
|00004490| 74 69 6f 6e 20 74 61 62 | 6c 65 20 61 73 73 6f 63 |tion tab|le assoc|
|000044a0| 69 61 74 65 73 20 61 20 | 63 6c 61 73 73 20 6c 61 |iates a |class la|
|000044b0| 62 65 6c 20 74 6f 20 61 | 20 63 75 73 74 6f 6d 20 |bel to a| custom |
|000044c0| 49 4f 20 66 75 6e 63 74 | 69 6f 6e 2e 0d 55 70 6f |IO funct|ion..Upo|
|000044d0| 6e 20 69 6e 76 6f 6b 69 | 6e 67 20 74 68 65 20 70 |n invoki|ng the p|
|000044e0| 61 72 74 2c 20 74 68 65 | 20 73 79 73 74 65 6d 20 |art, the| system |
|000044f0| 62 75 69 6c 64 73 20 67 | 6c 6f 62 61 6c 20 63 6c |builds g|lobal cl|
|00004500| 61 73 73 20 6e 61 6d 65 | 20 61 6e 64 20 63 6c 61 |ass name| and cla|
|00004510| 73 73 20 66 75 6e 63 74 | 69 6f 6e 20 74 61 62 6c |ss funct|ion tabl|
|00004520| 65 73 2e 20 49 74 20 74 | 68 65 6e 20 62 75 69 6c |es. It t|hen buil|
|00004530| 64 73 20 6c 6f 63 61 6c | 20 70 61 72 74 20 6e 61 |ds local| part na|
|00004540| 6d 65 20 61 6e 64 20 66 | 75 6e 63 74 69 6f 6e 20 |me and f|unction |
|00004550| 74 61 62 6c 65 73 20 66 | 72 6f 6d 20 74 68 65 20 |tables f|rom the |
|00004560| 63 6c 61 73 73 20 74 61 | 62 6c 65 73 2e 20 43 6c |class ta|bles. Cl|
|00004570| 61 73 73 20 74 61 62 6c | 65 73 20 61 72 65 20 67 |ass tabl|es are g|
|00004580| 6c 6f 62 61 6c 2d 2d 20 | 74 68 65 69 72 20 65 6e |lobal-- |their en|
|00004590| 74 72 69 65 73 20 63 61 | 6e 20 62 65 20 63 6f 70 |tries ca|n be cop|
|000045a0| 69 65 64 20 69 6e 74 6f | 20 6d 61 6e 79 20 70 61 |ied into| many pa|
|000045b0| 72 74 20 74 61 62 6c 65 | 73 2e 20 41 6e 20 70 61 |rt table|s. An pa|
|000045c0| 72 74 20 74 61 62 6c 65 | 20 69 73 20 6c 6f 63 61 |rt table| is loca|
|000045d0| 6c 20 74 6f 20 74 68 65 | 20 70 61 72 74 20 69 74 |l to the| part it|
|000045e0| 20 73 65 72 76 65 73 2e | 0d 57 68 65 6e 20 77 72 | serves.|.When wr|
|000045f0| 69 74 69 6e 67 20 61 20 | 44 4c 4c 20 6f 62 6a 65 |iting a |DLL obje|
|00004600| 63 74 2c 20 74 68 65 20 | 61 72 63 68 69 76 65 72 |ct, the |archiver|
|00004610| 20 72 65 74 72 69 65 76 | 65 73 20 61 20 70 6f 69 | retriev|es a poi|
|00004620| 6e 74 65 72 20 74 6f 20 | 74 68 65 20 63 6c 61 73 |nter to |the clas|
|00004630| 73 2c 20 75 73 65 73 20 | 52 54 54 49 20 74 6f 20 |s, uses |RTTI to |
|00004640| 72 65 74 72 69 65 76 65 | 20 74 68 65 20 63 6c 61 |retrieve| the cla|
|00004650| 73 73 20 6e 61 6d 65 20 | 6f 66 20 74 68 61 74 20 |ss name |of that |
|00004660| 63 6c 61 73 73 2c 20 61 | 6e 64 20 75 73 65 73 20 |class, a|nd uses |
|00004670| 74 68 65 20 70 61 72 74 | 20 6e 61 6d 65 20 74 61 |the part| name ta|
|00004680| 62 6c 65 20 74 6f 20 61 | 73 73 6f 63 69 61 74 65 |ble to a|ssociate|
|00004690| 20 61 20 6c 61 62 65 6c | 20 77 69 74 68 20 74 68 | a label| with th|
|000046a0| 65 20 63 6c 61 73 73 20 | 6e 61 6d 65 2e 20 55 73 |e class |name. Us|
|000046b0| 69 6e 67 20 74 68 69 73 | 20 70 61 72 74 20 6e 61 |ing this| part na|
|000046c0| 6d 65 20 74 61 62 6c 65 | 2c 20 69 74 20 72 65 66 |me table|, it ref|
|000046d0| 65 72 73 20 74 6f 20 74 | 68 65 20 70 61 72 74 20 |ers to t|he part |
|000046e0| 66 75 6e 63 74 69 6f 6e | 20 74 61 62 6c 65 2c 20 |function| table, |
|000046f0| 77 68 69 63 68 20 61 73 | 73 6f 63 69 61 74 65 73 |which as|sociates|
|00004700| 20 61 20 63 75 73 74 6f | 6d 20 6f 75 74 70 75 74 | a custo|m output|
|00004710| 20 66 75 6e 63 74 69 6f | 6e 20 77 69 74 68 20 74 | functio|n with t|
|00004720| 68 65 20 63 6c 61 73 73 | 20 6c 61 62 65 6c 3b 20 |he class| label; |
|00004730| 61 6e 64 20 69 74 20 74 | 68 65 6e 20 69 6e 76 6f |and it t|hen invo|
|00004740| 6b 65 73 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |kes the |function|
|00004750| 20 74 6f 20 77 72 69 74 | 65 20 74 68 65 20 6f 62 | to writ|e the ob|
|00004760| 6a 65 63 74 2e 0d 57 68 | 65 6e 20 72 65 61 64 69 |ject..Wh|en readi|
|00004770| 6e 67 20 61 20 44 4c 4c | 20 6f 62 6a 65 63 74 2c |ng a DLL| object,|
|00004780| 20 74 68 65 20 61 72 63 | 68 69 76 65 72 20 72 65 | the arc|hiver re|
|00004790| 61 64 73 20 74 68 65 20 | 63 6c 61 73 73 20 6c 61 |ads the |class la|
|000047a0| 62 65 6c 20 66 72 6f 6d | 20 74 68 65 20 70 61 72 |bel from| the par|
|000047b0| 74 20 6e 61 6d 65 20 74 | 61 62 6c 65 2c 20 61 6e |t name t|able, an|
|000047c0| 64 20 75 73 65 73 20 74 | 68 65 20 6c 61 62 65 6c |d uses t|he label|
|000047d0| 20 74 6f 20 6c 6f 6f 6b | 20 75 70 20 74 68 65 20 | to look| up the |
|000047e0| 63 75 73 74 6f 6d 20 69 | 6e 70 75 74 20 74 61 62 |custom i|nput tab|
|000047f0| 6c 65 20 6f 6e 20 74 68 | 65 20 66 75 6e 63 74 69 |le on th|e functi|
|00004800| 6f 6e 20 74 61 62 6c 65 | 2c 20 61 6e 64 20 69 6e |on table|, and in|
|00004810| 76 6f 6b 65 73 20 74 68 | 65 20 66 75 6e 63 74 69 |vokes th|e functi|
|00004820| 6f 6e 20 74 6f 20 72 65 | 61 64 20 74 68 65 20 6f |on to re|ad the o|
|00004830| 62 6a 65 63 74 2e 0d 41 | 72 63 68 69 76 69 6e 67 |bject..A|rchiving|
|00004840| 20 74 68 69 72 64 2d 70 | 61 72 74 79 20 64 79 6e | third-p|arty dyn|
|00004850| 61 6d 69 63 20 63 6c 61 | 73 73 65 73 20 69 6e 20 |amic cla|sses in |
|00004860| 61 6e 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 74 |an envir|onment t|
|00004870| 68 61 74 20 73 75 70 70 | 6f 72 74 73 20 52 54 54 |hat supp|orts RTT|
|00004880| 49 0d 50 65 72 66 6f 72 | 6d 20 73 74 65 70 73 20 |I.Perfor|m steps |
|00004890| 31 20 74 68 72 6f 75 67 | 68 20 36 20 6c 69 73 74 |1 throug|h 6 list|
|000048a0| 65 64 20 75 6e 64 65 72 | 20 41 72 63 68 69 76 69 |ed under| Archivi|
|000048b0| 6e 67 20 6f 62 6a 65 63 | 74 73 20 6f 66 20 64 79 |ng objec|ts of dy|
|000048c0| 6e 61 6d 69 63 20 63 6c | 61 73 73 65 73 2e 0d 41 |namic cl|asses..A|
|000048d0| 66 74 65 72 20 63 6f 6d | 70 6c 65 74 69 6e 67 20 |fter com|pleting |
|000048e0| 74 68 65 73 65 20 73 74 | 65 70 73 2c 20 79 6f 75 |these st|eps, you|
|000048f0| 20 77 69 6c 6c 20 68 61 | 76 65 20 63 72 65 61 74 | will ha|ve creat|
|00004900| 65 64 20 63 6f 64 65 20 | 73 69 6d 69 6c 61 72 20 |ed code |similar |
|00004910| 74 6f 20 74 68 65 20 4f | 50 46 20 66 69 6c 65 73 |to the O|PF files|
|00004920| 20 46 57 53 74 72 67 41 | 72 2e 68 20 61 6e 64 20 | FWStrgA|r.h and |
|00004930| 46 57 53 74 72 67 41 72 | 2e 63 70 70 2c 20 77 68 |FWStrgAr|.cpp, wh|
|00004940| 69 63 68 20 70 72 6f 76 | 69 64 65 20 61 72 63 68 |ich prov|ide arch|
|00004950| 69 76 69 6e 67 20 66 6f | 72 20 4f 50 46 20 73 74 |iving fo|r OPF st|
|00004960| 72 69 6e 67 73 2e 0d 48 | 6f 77 20 4f 50 46 20 75 |rings..H|ow OPF u|
|00004970| 73 65 73 20 52 54 54 49 | 0d 57 68 65 6e 20 79 6f |ses RTTI|.When yo|
|00004980| 75 20 63 6f 6d 70 69 6c | 65 20 79 6f 75 72 20 63 |u compil|e your c|
|00004990| 6f 64 65 2c 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |ode, you| want to|
|000049a0| 20 75 73 65 20 79 6f 75 | 72 20 65 6e 76 69 72 6f | use you|r enviro|
|000049b0| 6e 6d 65 6e 74 27 73 20 | 52 54 54 49 20 73 75 70 |nment's |RTTI sup|
|000049c0| 70 6f 72 74 2e 20 54 6f | 20 64 6f 20 79 6f 75 20 |port. To| do you |
|000049d0| 66 69 72 73 74 20 6e 65 | 65 64 20 74 6f 20 6b 6e |first ne|ed to kn|
|000049e0| 6f 77 20 73 6f 6d 65 74 | 68 69 6e 67 20 68 6f 77 |ow somet|hing how|
|000049f0| 20 4f 50 46 20 61 72 63 | 68 69 76 69 6e 67 20 75 | OPF arc|hiving u|
|00004a00| 73 65 73 20 52 54 54 49 | 2e 0d 54 68 65 20 4f 50 |ses RTTI|..The OP|
|00004a10| 46 20 61 72 63 68 69 76 | 69 6e 67 20 73 63 68 65 |F archiv|ing sche|
|00004a20| 6d 65 20 72 65 6c 69 65 | 73 20 6f 6e 20 74 77 6f |me relie|s on two|
|00004a30| 20 6d 61 63 72 6f 73 3a | 0d 46 57 5f 43 4c 41 53 | macros:|.FW_CLAS|
|00004a40| 53 4e 41 4d 45 5f 46 52 | 4f 4d 5f 50 4f 49 4e 54 |SNAME_FR|OM_POINT|
|00004a50| 45 52 28 70 6f 69 6e 74 | 65 72 29 0d 46 57 5f 43 |ER(point|er).FW_C|
|00004a60| 4c 41 53 53 4e 41 4d 45 | 5f 46 52 4f 4d 5f 54 59 |LASSNAME|_FROM_TY|
|00004a70| 50 45 28 63 6c 61 73 73 | 54 79 70 65 29 0d 54 68 |PE(class|Type).Th|
|00004a80| 65 73 65 20 6d 61 63 72 | 6f 73 20 61 72 65 20 64 |ese macr|os are d|
|00004a90| 65 66 69 6e 65 64 20 69 | 6e 20 46 57 43 6c 61 49 |efined i|n FWClaI|
|00004aa0| 6e 66 2e 68 20 66 69 6c | 65 20 69 6e 20 74 68 65 |nf.h fil|e in the|
|00004ab0| 20 46 57 52 75 6e 54 79 | 70 65 20 63 6f 6d 70 6f | FWRunTy|pe compo|
|00004ac0| 6e 65 6e 74 2e 0d 49 66 | 20 79 6f 75 72 20 63 6f |nent..If| your co|
|00004ad0| 6d 70 69 6c 65 72 20 73 | 75 70 70 6f 72 74 73 20 |mpiler s|upports |
|00004ae0| 52 54 54 49 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 |RTTI, yo|u should|
|00004af0| 20 63 6f 6d 70 69 6c 65 | 20 77 69 74 68 20 74 68 | compile| with th|
|00004b00| 65 20 6d 61 63 72 6f 20 | 46 57 5f 43 4f 4d 50 49 |e macro |FW_COMPI|
|00004b10| 4c 45 52 5f 53 55 50 50 | 4f 52 54 53 5f 52 54 54 |LER_SUPP|ORTS_RTT|
|00004b20| 49 20 64 65 66 69 6e 65 | 64 2e 20 54 68 69 73 20 |I define|d. This |
|00004b30| 72 65 73 75 6c 74 73 20 | 69 6e 20 74 68 65 73 65 |results |in these|
|00004b40| 20 74 77 6f 20 6d 61 63 | 72 6f 73 20 75 73 69 6e | two mac|ros usin|
|00004b50| 67 20 74 68 65 20 74 79 | 70 65 69 64 20 6f 70 65 |g the ty|peid ope|
|00004b60| 72 61 74 6f 72 20 64 65 | 66 69 6e 65 64 20 69 6e |rator de|fined in|
|00004b70| 20 74 68 65 20 43 2b 2b | 20 6c 61 6e 67 75 61 67 | the C++| languag|
|00004b80| 65 20 65 78 74 65 6e 73 | 69 6f 6e 20 66 6f 72 20 |e extens|ion for |
|00004b90| 52 54 54 49 2e 0d 49 66 | 20 79 6f 75 72 20 63 6f |RTTI..If| your co|
|00004ba0| 6d 70 69 6c 65 72 20 64 | 6f 65 73 20 6e 6f 74 20 |mpiler d|oes not |
|00004bb0| 73 75 70 70 6f 72 74 20 | 52 54 54 49 20 62 75 74 |support |RTTI but|
|00004bc0| 20 74 68 65 20 74 68 69 | 72 64 2d 70 61 72 74 79 | the thi|rd-party|
|00004bd0| 20 63 6c 61 73 73 20 6c | 69 62 72 61 72 79 20 79 | class l|ibrary y|
|00004be0| 6f 75 20 61 72 65 20 75 | 73 69 6e 67 20 68 61 73 |ou are u|sing has|
|00004bf0| 20 74 68 65 69 72 20 6f | 77 6e 20 52 54 54 49 20 | their o|wn RTTI |
|00004c00| 73 69 6d 75 6c 61 74 69 | 6f 6e 2c 20 79 6f 75 27 |simulati|on, you'|
|00004c10| 6c 6c 20 68 61 76 65 20 | 74 6f 20 64 65 66 69 6e |ll have |to defin|
|00004c20| 65 20 6e 65 77 20 69 6d | 70 6c 65 6d 65 6e 74 61 |e new im|plementa|
|00004c30| 74 69 6f 6e 73 20 66 6f | 72 20 74 68 65 20 74 77 |tions fo|r the tw|
|00004c40| 6f 20 6d 61 63 72 6f 73 | 20 46 57 5f 43 4c 41 53 |o macros| FW_CLAS|
|00004c50| 53 4e 41 4d 45 5f 46 52 | 4f 4d 5f 50 4f 49 4e 54 |SNAME_FR|OM_POINT|
|00004c60| 45 52 20 61 6e 64 20 46 | 57 5f 43 4c 41 53 53 4e |ER and F|W_CLASSN|
|00004c70| 41 4d 45 5f 2d 20 46 52 | 4f 4d 5f 54 59 50 45 20 |AME_- FR|OM_TYPE |
|00004c80| 61 6e 64 20 75 73 65 20 | 74 68 65 6d 20 74 6f 20 |and use |them to |
|00004c90| 63 6f 6d 70 69 6c 65 20 | 74 68 65 20 63 6f 64 65 |compile |the code|
|00004ca0| 20 79 6f 75 20 63 72 65 | 61 74 65 64 20 69 6e 20 | you cre|ated in |
|00004cb0| 69 6d 70 6c 65 6d 65 6e | 74 69 6e 67 20 73 74 65 |implemen|ting ste|
|00004cc0| 70 73 20 31 20 74 68 72 | 6f 75 67 68 20 36 20 64 |ps 1 thr|ough 6 d|
|00004cd0| 65 73 63 72 69 62 65 64 | 20 61 62 6f 76 65 2e 0d |escribed| above..|
|00004ce0| 4f 62 6a 65 63 74 20 76 | 65 72 73 69 6f 6e 69 6e |Object v|ersionin|
|00004cf0| 67 0d 54 68 65 20 61 72 | 63 68 69 76 65 64 20 69 |g.The ar|chived i|
|00004d00| 6d 61 67 65 20 6f 66 20 | 61 6e 20 6f 62 6a 65 63 |mage of |an objec|
|00004d10| 74 20 6d 61 79 20 63 68 | 61 6e 67 65 20 66 72 6f |t may ch|ange fro|
|00004d20| 6d 20 6f 6e 65 20 72 65 | 6c 65 61 73 65 20 74 6f |m one re|lease to|
|00004d30| 20 61 6e 6f 74 68 65 72 | 2e 20 59 6f 75 72 20 70 | another|. Your p|
|00004d40| 72 6f 64 75 63 74 20 6d | 61 79 20 72 65 71 75 69 |roduct m|ay requi|
|00004d50| 72 65 20 74 68 61 74 20 | 61 72 63 68 69 76 65 64 |re that |archived|
|00004d60| 20 69 6d 61 67 65 73 20 | 63 72 65 61 74 65 64 20 | images |created |
|00004d70| 62 79 20 70 72 65 76 69 | 6f 75 73 20 72 65 6c 65 |by previ|ous rele|
|00004d80| 61 73 65 73 20 62 65 20 | 73 75 70 70 6f 72 74 65 |ases be |supporte|
|00004d90| 64 20 62 79 20 6e 65 77 | 65 72 20 72 65 6c 65 61 |d by new|er relea|
|00004da0| 73 65 73 2e 0d 54 68 65 | 20 4f 50 46 20 61 72 63 |ses..The| OPF arc|
|00004db0| 68 69 76 69 6e 67 20 6d | 65 63 68 61 6e 69 73 6d |hiving m|echanism|
|00004dc0| 20 73 75 70 70 6f 72 74 | 73 20 6f 62 6a 65 63 74 | support|s object|
|00004dd0| 20 76 65 72 73 69 6f 6e | 69 6e 67 20 76 69 61 20 | version|ing via |
|00004de0| d2 63 6c 61 73 73 20 6c | 61 62 65 6c 73 d3 2e 20 |.class l|abels.. |
|00004df0| 41 20 63 6c 61 73 73 20 | 6c 61 62 65 6c 20 69 73 |A class |label is|
|00004e00| 20 61 6e 79 20 41 53 43 | 49 49 20 73 74 72 69 6e | any ASC|II strin|
|00004e10| 67 20 74 68 61 74 20 79 | 6f 75 20 61 73 73 6f 63 |g that y|ou assoc|
|00004e20| 69 61 74 65 20 77 69 74 | 68 20 69 74 73 20 43 2b |iate wit|h its C+|
|00004e30| 2b 20 63 6c 61 73 73 20 | 61 6e 64 20 69 74 73 20 |+ class |and its |
|00004e40| 69 6e 70 75 74 20 61 6e | 64 20 6f 75 74 70 75 74 |input an|d output|
|00004e50| 20 66 75 6e 63 74 69 6f | 6e 73 20 76 69 61 20 74 | functio|ns via t|
|00004e60| 68 65 20 46 57 5f 52 45 | 47 49 53 54 45 52 5f 41 |he FW_RE|GISTER_A|
|00004e70| 52 43 48 49 56 45 5f 43 | 4c 41 53 53 20 6d 61 63 |RCHIVE_C|LASS mac|
|00004e80| 72 6f 2c 20 66 6f 75 6e | 64 20 69 6e 20 46 57 41 |ro, foun|d in FWA|
|00004e90| 72 44 79 6e 61 2e 68 2e | 20 57 68 65 6e 20 6f 62 |rDyna.h.| When ob|
|00004ea0| 6a 65 63 74 73 20 61 72 | 65 20 61 72 63 68 69 76 |jects ar|e archiv|
|00004eb0| 65 64 2c 20 74 68 65 20 | 63 6c 61 73 73 20 6c 61 |ed, the |class la|
|00004ec0| 62 65 6c 20 28 6e 6f 74 | 20 74 68 65 20 63 6c 61 |bel (not| the cla|
|00004ed0| 73 73 20 6e 61 6d 65 29 | 20 69 73 20 70 72 65 70 |ss name)| is prep|
|00004ee0| 65 6e 64 65 64 20 74 6f | 20 74 68 65 20 61 72 63 |ended to| the arc|
|00004ef0| 68 69 76 65 64 20 69 6d | 61 67 65 20 6f 66 20 61 |hived im|age of a|
|00004f00| 6e 20 6f 62 6a 65 63 74 | 2e 0d 4e 65 77 20 72 65 |n object|..New re|
|00004f10| 6c 65 61 73 65 73 20 6f | 66 20 61 20 70 72 6f 64 |leases o|f a prod|
|00004f20| 75 63 74 20 74 68 61 74 | 20 72 65 71 75 69 72 65 |uct that| require|
|00004f30| 20 63 68 61 6e 67 65 73 | 20 74 6f 20 61 20 63 6c | changes| to a cl|
|00004f40| 61 73 73 27 73 20 61 72 | 63 68 69 76 65 64 20 69 |ass's ar|chived i|
|00004f50| 6d 61 67 65 20 77 69 6c | 6c 20 73 70 65 63 69 66 |mage wil|l specif|
|00004f60| 79 20 61 20 6e 65 77 20 | 63 6c 61 73 73 20 6c 61 |y a new |class la|
|00004f70| 62 65 6c 20 66 6f 72 20 | 74 68 65 20 75 70 64 61 |bel for |the upda|
|00004f80| 74 65 64 20 63 6c 61 73 | 73 2e 0d 46 6f 72 20 65 |ted clas|s..For e|
|00004f90| 78 61 6d 70 6c 65 2c 20 | 69 6e 20 74 68 65 20 69 |xample, |in the i|
|00004fa0| 6e 69 74 69 61 6c 20 72 | 65 6c 65 61 73 65 20 6f |nitial r|elease o|
|00004fb0| 66 20 79 6f 75 72 20 70 | 72 6f 64 75 63 74 20 79 |f your p|roduct y|
|00004fc0| 6f 75 20 6d 69 67 68 74 | 20 61 73 73 6f 63 69 61 |ou might| associa|
|00004fd0| 74 65 20 74 68 65 20 6c | 61 62 65 6c 20 27 4c 46 |te the l|abel 'LF|
|00004fe0| 6f 6f 27 20 77 69 74 68 | 20 74 68 65 20 43 2b 2b |oo' with| the C++|
|00004ff0| 20 63 6c 61 73 73 20 43 | 46 6f 6f 2e 20 49 6e 20 | class C|Foo. In |
|00005000| 61 20 6c 61 74 65 72 20 | 72 65 6c 65 61 73 65 20 |a later |release |
|00005010| 6f 66 20 79 6f 75 72 20 | 70 72 6f 64 75 63 74 20 |of your |product |
|00005020| 74 68 65 20 61 72 63 68 | 69 76 65 64 20 69 6d 61 |the arch|ived ima|
|00005030| 67 65 20 6f 66 20 79 6f | 75 72 20 43 46 6f 6f 20 |ge of yo|ur CFoo |
|00005040| 63 6c 61 73 73 20 63 68 | 61 6e 67 65 73 20 61 6e |class ch|anges an|
|00005050| 64 20 43 46 6f 6f 20 69 | 6e 73 74 61 6e 63 65 73 |d CFoo i|nstances|
|00005060| 20 61 72 65 20 61 72 63 | 68 69 76 65 64 20 6f 75 | are arc|hived ou|
|00005070| 74 20 75 73 69 6e 67 20 | 74 68 65 20 6c 61 62 65 |t using |the labe|
|00005080| 6c 20 27 4c 46 6f 6f 32 | 27 2e 0d 4e 65 77 20 72 |l 'LFoo2|'..New r|
|00005090| 65 6c 65 61 73 65 73 20 | 6d 61 79 20 73 75 70 70 |eleases |may supp|
|000050a0| 6f 72 74 20 61 72 63 68 | 69 76 65 73 20 63 6f 6e |ort arch|ives con|
|000050b0| 74 61 69 6e 69 6e 67 20 | 63 6c 61 73 73 20 6c 61 |taining |class la|
|000050c0| 62 65 6c 73 20 77 72 69 | 74 74 65 6e 20 6f 75 74 |bels wri|tten out|
|000050d0| 20 62 79 20 70 72 65 76 | 69 6f 75 73 20 72 65 6c | by prev|ious rel|
|000050e0| 65 61 73 65 73 20 62 79 | 20 75 73 69 6e 67 20 74 |eases by| using t|
|000050f0| 68 65 20 46 57 5f 52 45 | 47 49 53 54 45 52 5f 41 |he FW_RE|GISTER_A|
|00005100| 52 43 48 49 56 45 5f 2d | 20 4f 4c 44 5f 56 45 52 |RCHIVE_-| OLD_VER|
|00005110| 53 49 4f 4e 5f 4c 41 42 | 45 4c 20 6d 61 63 72 6f |SION_LAB|EL macro|
|00005120| 2e 20 54 68 69 73 20 6d | 61 63 72 6f 20 74 61 6b |. This m|acro tak|
|00005130| 65 73 20 61 73 20 61 72 | 67 75 6d 65 6e 74 73 20 |es as ar|guments |
|00005140| 61 20 63 6c 61 73 73 20 | 6c 61 62 65 6c 20 61 6e |a class |label an|
|00005150| 64 20 74 68 65 20 61 64 | 64 72 65 73 73 20 6f 66 |d the ad|dress of|
|00005160| 20 61 6e 20 69 6e 70 75 | 74 20 66 75 6e 63 74 69 | an inpu|t functi|
|00005170| 6f 6e 20 74 6f 20 62 65 | 20 63 61 6c 6c 65 64 20 |on to be| called |
|00005180| 77 68 65 6e 20 74 68 61 | 74 20 63 6c 61 73 73 20 |when tha|t class |
|00005190| 6c 61 62 65 6c 20 69 73 | 20 65 6e 63 6f 75 6e 74 |label is| encount|
|000051a0| 65 72 65 64 20 69 6e 20 | 61 6e 20 61 72 63 68 69 |ered in |an archi|
|000051b0| 76 65 2e 20 59 6f 75 20 | 6d 61 79 20 73 75 63 63 |ve. You |may succ|
|000051c0| 65 73 73 66 75 6c 6c 79 | 20 72 65 61 64 20 61 6e |essfully| read an|
|000051d0| 20 6f 6c 64 65 72 20 61 | 72 63 68 69 76 65 64 20 | older a|rchived |
|000051e0| 6f 62 6a 65 63 74 20 62 | 79 20 73 70 65 63 69 66 |object b|y specif|
|000051f0| 79 69 6e 67 20 61 20 63 | 6c 61 73 73 20 6c 61 62 |ying a c|lass lab|
|00005200| 65 6c 20 66 72 6f 6d 20 | 69 74 73 20 70 72 65 76 |el from |its prev|
|00005210| 69 6f 75 73 20 72 65 6c | 65 61 73 65 20 61 6e 64 |ious rel|ease and|
|00005220| 20 70 72 6f 76 69 64 69 | 6e 67 20 61 6e 20 69 6e | providi|ng an in|
|00005230| 70 75 74 20 66 75 6e 63 | 74 69 6f 6e 20 74 68 61 |put func|tion tha|
|00005240| 74 20 63 72 65 61 74 65 | 73 20 61 20 73 75 69 74 |t create|s a suit|
|00005250| 61 62 6c 65 20 69 6e 73 | 74 61 6e 63 65 20 6f 66 |able ins|tance of|
|00005260| 20 61 20 63 6c 61 73 73 | 20 73 75 70 70 6f 72 74 | a class| support|
|00005270| 65 64 20 69 6e 20 74 68 | 65 20 6e 65 77 20 72 65 |ed in th|e new re|
|00005280| 6c 65 61 73 65 2e 0d 53 | 75 62 63 6c 61 73 73 69 |lease..S|ubclassi|
|00005290| 6e 67 20 61 6e 64 20 45 | 78 74 65 6e 64 69 6e 67 |ng and E|xtending|
|000052a0| 20 74 68 65 20 41 72 63 | 68 69 76 65 72 20 63 6f | the Arc|hiver co|
|000052b0| 6d 70 6f 6e 65 6e 74 0d | 59 6f 75 20 74 79 70 69 |mponent.|You typi|
|000052c0| 63 61 6c 6c 79 20 73 68 | 6f 75 6c 64 20 6e 6f 74 |cally sh|ould not|
|000052d0| 20 6e 65 65 64 20 74 6f | 20 73 75 62 63 6c 61 73 | need to| subclas|
|000052e0| 73 20 63 6c 61 73 73 65 | 73 20 64 65 66 69 6e 65 |s classe|s define|
|000052f0| 64 20 62 79 20 74 68 69 | 73 20 63 6f 6d 70 6f 6e |d by thi|s compon|
|00005300| 65 6e 74 2e 0d 50 6c 61 | 74 66 6f 72 6d 20 64 65 |ent..Pla|tform de|
|00005310| 70 65 6e 64 65 6e 63 69 | 65 73 20 69 6e 20 74 68 |pendenci|es in th|
|00005320| 65 20 41 72 63 68 69 76 | 65 72 20 63 6f 6d 70 6f |e Archiv|er compo|
|00005330| 6e 65 6e 74 0d 54 68 65 | 72 65 20 61 72 65 20 6e |nent.The|re are n|
|00005340| 6f 20 70 6c 61 74 66 6f | 72 6d 20 64 65 70 65 6e |o platfo|rm depen|
|00005350| 64 65 6e 63 69 65 73 20 | 66 6f 72 20 74 68 69 73 |dencies |for this|
|00005360| 20 63 6f 6d 70 6f 6e 65 | 6e 74 2e 0d 46 57 5f 43 | compone|nt..FW_C|
|00005370| 42 61 73 69 63 4f 62 6a | 65 63 74 52 65 67 69 73 |BasicObj|ectRegis|
|00005380| 74 72 79 20 63 6c 61 73 | 73 0d 49 6e 74 72 6f 64 |try clas|s.Introd|
|00005390| 75 63 74 69 6f 6e 0d 20 | 46 57 5f 43 42 61 73 69 |uction. |FW_CBasi|
|000053a0| 63 4f 62 6a 65 63 74 52 | 65 67 69 73 74 72 79 20 |cObjectR|egistry |
|000053b0| 69 73 20 61 20 63 6f 6e | 63 72 65 74 65 20 63 6c |is a con|crete cl|
|000053c0| 61 73 73 20 74 68 61 74 | 20 64 65 66 69 6e 65 73 |ass that| defines|
|000053d0| 20 74 68 65 20 69 6e 74 | 65 72 66 61 63 65 20 74 | the int|erface t|
|000053e0| 6f 20 74 68 65 20 4f 50 | 46 20 72 75 6e 2d 74 69 |o the OP|F run-ti|
|000053f0| 6d 65 20 6f 62 6a 65 63 | 74 20 72 65 67 69 73 74 |me objec|t regist|
|00005400| 72 79 2e 0d 4f 50 46 20 | 70 72 6f 76 69 64 65 73 |ry..OPF |provides|
|00005410| 20 46 57 5f 43 42 61 73 | 69 63 4f 62 6a 65 63 74 | FW_CBas|icObject|
|00005420| 52 65 67 69 73 74 72 79 | 2c 20 61 20 63 6f 6e 63 |Registry|, a conc|
|00005430| 72 65 74 65 20 73 75 62 | 63 6c 61 73 73 20 6f 66 |rete sub|class of|
|00005440| 20 46 57 5f 43 4f 62 6a | 65 63 74 52 65 67 69 73 | FW_CObj|ectRegis|
|00005450| 74 72 79 2c 20 77 68 69 | 63 68 20 69 73 20 75 73 |try, whi|ch is us|
|00005460| 65 64 20 61 73 20 74 68 | 65 20 64 65 66 61 75 6c |ed as th|e defaul|
|00005470| 74 20 72 75 6e 2d 74 69 | 6d 65 20 6f 62 6a 65 63 |t run-ti|me objec|
|00005480| 74 20 72 65 67 69 73 74 | 72 79 2e 0d 41 20 4f 50 |t regist|ry..A OP|
|00005490| 46 20 72 75 6e 2d 74 69 | 6d 65 20 6f 62 6a 65 63 |F run-ti|me objec|
|000054a0| 74 20 72 65 67 69 73 74 | 72 79 20 69 73 20 61 20 |t regist|ry is a |
|000054b0| 64 61 74 61 62 61 73 65 | 20 74 68 61 74 20 61 73 |database| that as|
|000054c0| 73 6f 63 69 61 74 65 73 | 20 70 6f 69 6e 74 65 72 |sociates| pointer|
|000054d0| 73 20 74 6f 20 6f 62 6a | 65 63 74 73 20 61 6e 64 |s to obj|ects and|
|000054e0| 20 49 44 73 20 28 69 64 | 65 6e 74 69 66 69 65 72 | IDs (id|entifier|
|000054f0| 73 29 2e 20 54 68 65 20 | 6f 62 6a 65 63 74 20 72 |s). The |object r|
|00005500| 65 67 69 73 74 72 79 20 | 63 72 65 61 74 65 73 20 |egistry |creates |
|00005510| 6f 62 6a 65 63 74 20 49 | 44 73 20 77 68 65 6e 20 |object I|Ds when |
|00005520| 61 6e 20 6f 62 6a 65 63 | 74 20 70 6f 69 6e 74 65 |an objec|t pointe|
|00005530| 72 20 69 73 20 72 65 67 | 69 73 74 65 72 65 64 20 |r is reg|istered |
|00005540| 69 6e 20 74 68 65 20 72 | 65 67 69 73 74 72 79 2e |in the r|egistry.|
|00005550| 0d 48 65 61 64 65 72 20 | 46 69 6c 65 0d 46 57 4f |.Header |File.FWO|
|00005560| 62 6a 52 65 67 2e 68 0d | 48 65 72 69 74 61 67 65 |bjReg.h.|Heritage|
|00005570| 0d 46 57 5f 43 42 61 73 | 69 63 4f 62 6a 65 63 74 |.FW_CBas|icObject|
|00005580| 52 65 67 69 73 74 72 79 | 0d 55 73 69 6e 67 20 54 |Registry|.Using T|
|00005590| 68 69 73 20 43 6c 61 73 | 73 0d 54 68 69 73 20 63 |his Clas|s.This c|
|000055a0| 6c 61 73 73 20 69 73 20 | 61 6e 20 69 6d 70 6c 65 |lass is |an imple|
|000055b0| 6d 65 6e 74 61 74 69 6f | 6e 20 63 6c 61 73 73 2e |mentatio|n class.|
|000055c0| 20 59 6f 75 20 77 69 6c | 6c 20 6e 6f 74 20 6e 65 | You wil|l not ne|
|000055d0| 65 64 20 74 6f 20 69 6e | 73 74 61 6e 74 69 61 74 |ed to in|stantiat|
|000055e0| 65 20 69 74 20 6f 72 20 | 63 61 6c 6c 20 69 74 73 |e it or |call its|
|000055f0| 20 6d 65 74 68 6f 64 73 | 20 64 69 72 65 63 74 6c | methods| directl|
|00005600| 79 20 75 6e 64 65 72 20 | 6e 6f 72 6d 61 6c 20 63 |y under |normal c|
|00005610| 69 72 63 75 6d 73 74 61 | 6e 63 65 73 2e 0d 41 20 |ircumsta|nces..A |
|00005620| 77 72 69 74 61 62 6c 65 | 20 61 72 63 68 69 76 65 |writable| archive|
|00005630| 20 61 6e 64 20 61 6e 20 | 6f 62 6a 65 63 74 20 72 | and an |object r|
|00005640| 65 67 69 73 74 72 79 0d | 45 76 65 72 79 20 77 72 |egistry.|Every wr|
|00005650| 69 74 61 62 6c 65 20 61 | 72 63 68 69 76 65 20 68 |itable a|rchive h|
|00005660| 61 73 20 61 6e 20 6f 62 | 6a 65 63 74 20 72 65 67 |as an ob|ject reg|
|00005670| 69 73 74 72 79 2e 0d 41 | 6e 20 6f 62 6a 65 63 74 |istry..A|n object|
|00005680| 20 69 73 20 77 72 69 74 | 74 65 6e 20 74 6f 20 61 | is writ|ten to a|
|00005690| 20 77 72 69 74 61 62 6c | 65 20 61 72 63 68 69 76 | writabl|e archiv|
|000056a0| 65 20 62 79 20 70 61 73 | 73 69 6e 67 20 74 68 65 |e by pas|sing the|
|000056b0| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|000056c0| 6f 62 6a 65 63 74 20 61 | 6e 64 20 61 20 70 6f 69 |object a|nd a poi|
|000056d0| 6e 74 65 72 20 74 6f 20 | 74 68 65 20 6f 75 74 70 |nter to |the outp|
|000056e0| 75 74 20 66 75 6e 63 74 | 69 6f 6e 20 74 68 61 74 |ut funct|ion that|
|000056f0| 20 69 73 20 72 65 73 70 | 6f 6e 73 69 62 6c 65 20 | is resp|onsible |
|00005700| 66 6f 72 20 77 72 69 74 | 69 6e 67 20 74 68 65 20 |for writ|ing the |
|00005710| 6f 62 6a 65 63 74 27 73 | 20 69 6d 61 67 65 20 74 |object's| image t|
|00005720| 6f 20 74 68 65 20 61 72 | 63 68 69 76 65 2e 20 54 |o the ar|chive. T|
|00005730| 68 65 20 77 72 69 74 61 | 62 6c 65 20 61 72 63 68 |he writa|ble arch|
|00005740| 69 76 65 20 66 69 72 73 | 74 20 63 68 65 63 6b 73 |ive firs|t checks|
|00005750| 20 69 66 20 74 68 65 20 | 6f 62 6a 65 63 74 27 73 | if the |object's|
|00005760| 20 70 6f 69 6e 74 65 72 | 20 69 73 20 61 6c 72 65 | pointer| is alre|
|00005770| 61 64 79 20 72 65 67 69 | 73 74 65 72 65 64 20 69 |ady regi|stered i|
|00005780| 6e 20 69 74 73 20 6f 62 | 6a 65 63 74 20 72 65 67 |n its ob|ject reg|
|00005790| 69 73 74 72 79 2e 0d 49 | 66 20 74 68 65 20 70 6f |istry..I|f the po|
|000057a0| 69 6e 74 65 72 20 68 61 | 73 20 6e 6f 74 20 62 65 |inter ha|s not be|
|000057b0| 65 6e 20 72 65 67 69 73 | 74 65 72 65 64 2c 20 69 |en regis|tered, i|
|000057c0| 74 20 69 73 20 72 65 67 | 69 73 74 65 72 65 64 20 |t is reg|istered |
|000057d0| 61 6e 64 20 74 68 65 20 | 77 72 69 74 61 62 6c 65 |and the |writable|
|000057e0| 20 61 72 63 68 69 76 65 | 20 77 72 69 74 65 73 20 | archive| writes |
|000057f0| 61 20 72 65 63 6f 72 64 | 20 74 6f 20 69 74 73 65 |a record| to itse|
|00005800| 6c 66 2e 20 54 68 65 20 | 72 65 63 6f 72 64 20 63 |lf. The |record c|
|00005810| 6f 6e 74 61 69 6e 73 20 | 74 68 65 20 6f 62 6a 65 |ontains |the obje|
|00005820| 63 74 27 73 20 49 44 20 | 61 6e 64 20 61 20 66 6c |ct's ID |and a fl|
|00005830| 61 67 20 69 6e 64 69 63 | 61 74 69 6e 67 20 74 68 |ag indic|ating th|
|00005840| 65 20 69 6d 61 67 65 20 | 6f 66 20 74 68 65 20 6f |e image |of the o|
|00005850| 62 6a 65 63 74 20 69 6d | 6d 65 64 69 61 74 65 6c |bject im|mediatel|
|00005860| 79 20 66 6f 6c 6c 6f 77 | 73 20 74 68 69 73 20 72 |y follow|s this r|
|00005870| 65 63 6f 72 64 2e 20 54 | 68 65 6e 20 74 68 65 20 |ecord. T|hen the |
|00005880| 77 72 69 74 61 62 6c 65 | 20 61 72 63 68 69 76 65 |writable| archive|
|00005890| 20 63 61 6c 6c 73 20 74 | 68 65 20 73 75 70 70 6c | calls t|he suppl|
|000058a0| 69 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 77 68 69 |ied func|tion whi|
|000058b0| 63 68 20 77 69 6c 6c 20 | 77 72 69 74 65 20 6f 75 |ch will |write ou|
|000058c0| 74 20 74 68 65 20 6f 62 | 6a 65 63 74 27 73 20 69 |t the ob|ject's i|
|000058d0| 6d 61 67 65 2e 0d 49 66 | 20 74 68 65 20 70 6f 69 |mage..If| the poi|
|000058e0| 6e 74 65 72 20 68 61 73 | 20 62 65 65 6e 20 72 65 |nter has| been re|
|000058f0| 67 69 73 74 65 72 65 64 | 2c 20 74 68 65 20 77 72 |gistered|, the wr|
|00005900| 69 74 61 62 6c 65 20 61 | 72 63 68 69 76 65 20 77 |itable a|rchive w|
|00005910| 72 69 74 65 73 20 61 20 | 64 69 66 66 65 72 65 6e |rites a |differen|
|00005920| 74 20 72 65 63 6f 72 64 | 20 74 6f 20 69 74 73 65 |t record| to itse|
|00005930| 6c 66 2e 20 54 68 69 73 | 20 72 65 63 6f 72 64 20 |lf. This| record |
|00005940| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 6f 62 6a |contains| the obj|
|00005950| 65 63 74 27 73 20 49 44 | 20 61 6e 64 20 61 20 66 |ect's ID| and a f|
|00005960| 6c 61 67 20 69 6e 64 69 | 63 61 74 69 6e 67 20 74 |lag indi|cating t|
|00005970| 68 61 74 20 74 68 65 20 | 6f 62 6a 65 63 74 20 70 |hat the |object p|
|00005980| 6f 69 6e 74 65 72 20 69 | 73 20 69 6e 20 74 68 65 |ointer i|s in the|
|00005990| 20 6f 62 6a 65 63 74 20 | 72 65 67 69 73 74 72 79 | object |registry|
|000059a0| 2e 20 4e 6f 74 65 20 74 | 68 61 74 20 74 68 65 20 |. Note t|hat the |
|000059b0| 73 75 70 70 6c 69 65 64 | 20 6f 75 74 70 75 74 20 |supplied| output |
|000059c0| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 6e 6f 74 20 |function| is not |
|000059d0| 63 61 6c 6c 65 64 3b 20 | 54 68 61 74 20 69 73 2c |called; |That is,|
|000059e0| 20 74 68 65 20 69 6d 61 | 67 65 20 6f 66 20 61 20 | the ima|ge of a |
|000059f0| 6d 75 6c 74 69 70 6c 79 | 2d 72 65 66 65 72 65 6e |multiply|-referen|
|00005a00| 63 65 64 20 6f 62 6a 65 | 63 74 20 69 73 20 6f 6e |ced obje|ct is on|
|00005a10| 6c 79 20 77 72 69 74 74 | 65 6e 20 6f 6e 63 65 2e |ly writt|en once.|
|00005a20| 0d 41 20 72 65 61 64 61 | 62 6c 65 20 61 72 63 68 |.A reada|ble arch|
|00005a30| 69 76 65 20 61 6e 64 20 | 61 6e 20 6f 62 6a 65 63 |ive and |an objec|
|00005a40| 74 20 72 65 67 69 73 74 | 72 79 0d 45 76 65 72 79 |t regist|ry.Every|
|00005a50| 20 72 65 61 64 61 62 6c | 65 20 61 72 63 68 69 76 | readabl|e archiv|
|00005a60| 65 20 68 61 73 20 61 6e | 20 6f 62 6a 65 63 74 20 |e has an| object |
|00005a70| 72 65 67 69 73 74 72 79 | 2e 0d 41 6e 20 6f 62 6a |registry|..An obj|
|00005a80| 65 63 74 20 69 73 20 72 | 65 61 64 20 66 72 6f 6d |ect is r|ead from|
|00005a90| 20 61 20 72 65 61 64 61 | 62 6c 65 20 61 72 63 68 | a reada|ble arch|
|00005aa0| 69 76 65 20 62 79 20 70 | 61 73 73 69 6e 67 20 61 |ive by p|assing a|
|00005ab0| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00005ac0| 69 6e 70 75 74 20 66 75 | 6e 63 74 69 6f 6e 20 74 |input fu|nction t|
|00005ad0| 68 61 74 20 69 73 20 72 | 65 73 70 6f 6e 73 69 62 |hat is r|esponsib|
|00005ae0| 6c 65 20 66 6f 72 20 72 | 65 61 64 69 6e 67 20 74 |le for r|eading t|
|00005af0| 68 65 20 6f 62 6a 65 63 | 74 27 73 20 69 6d 61 67 |he objec|t's imag|
|00005b00| 65 20 66 72 6f 6d 20 74 | 68 65 20 61 72 63 68 69 |e from t|he archi|
|00005b10| 76 65 2e 20 54 68 65 20 | 72 65 61 64 61 62 6c 65 |ve. The |readable|
|00005b20| 20 61 72 63 68 69 76 65 | 20 72 65 61 64 73 20 66 | archive| reads f|
|00005b30| 72 6f 6d 20 69 74 73 65 | 6c 66 20 74 68 65 20 72 |rom itse|lf the r|
|00005b40| 65 63 6f 72 64 20 77 72 | 69 74 74 65 6e 20 62 79 |ecord wr|itten by|
|00005b50| 20 74 68 65 20 77 72 69 | 74 61 62 6c 65 20 61 72 | the wri|table ar|
|00005b60| 63 68 69 76 65 2e 20 54 | 68 65 20 72 65 63 6f 72 |chive. T|he recor|
|00005b70| 64 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 49 |d contai|ns the I|
|00005b80| 44 20 6f 66 20 74 68 65 | 20 6f 62 6a 65 63 74 20 |D of the| object |
|00005b90| 61 6e 64 20 61 20 66 6c | 61 67 20 69 6e 64 69 63 |and a fl|ag indic|
|00005ba0| 61 74 69 6e 67 20 77 68 | 65 74 68 65 72 20 74 68 |ating wh|ether th|
|00005bb0| 65 20 6f 62 6a 65 63 74 | 27 73 20 69 6d 61 67 65 |e object|'s image|
|00005bc0| 20 69 6d 6d 65 64 69 61 | 74 65 6c 79 20 66 6f 6c | immedia|tely fol|
|00005bd0| 6c 6f 77 73 20 74 68 65 | 20 72 65 63 6f 72 64 20 |lows the| record |
|00005be0| 6f 72 20 74 68 65 20 6f | 62 6a 65 63 74 20 73 68 |or the o|bject sh|
|00005bf0| 6f 75 6c 64 20 62 65 20 | 66 6f 75 6e 64 20 69 6e |ould be |found in|
|00005c00| 20 74 68 65 20 6f 62 6a | 65 63 74 20 72 65 67 69 | the obj|ect regi|
|00005c10| 73 74 72 79 2e 0d 49 66 | 20 74 68 65 20 72 65 63 |stry..If| the rec|
|00005c20| 6f 72 64 20 69 6e 64 69 | 63 61 74 65 73 20 74 68 |ord indi|cates th|
|00005c30| 61 74 20 74 68 65 20 6f | 62 6a 65 63 74 27 73 20 |at the o|bject's |
|00005c40| 69 6d 61 67 65 20 66 6f | 6c 6c 6f 77 73 2c 20 74 |image fo|llows, t|
|00005c50| 68 65 20 73 75 70 70 6c | 69 65 64 20 69 6e 70 75 |he suppl|ied inpu|
|00005c60| 74 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 63 61 |t functi|on is ca|
|00005c70| 6c 6c 65 64 2e 20 54 68 | 65 20 76 61 6c 75 65 20 |lled. Th|e value |
|00005c80| 72 65 74 75 72 6e 65 64 | 20 28 61 20 70 6f 69 6e |returned| (a poin|
|00005c90| 74 65 72 20 74 6f 20 74 | 68 65 20 6f 62 6a 65 63 |ter to t|he objec|
|00005ca0| 74 29 20 61 6c 6f 6e 67 | 20 77 69 74 68 20 74 68 |t) along| with th|
|00005cb0| 65 20 49 44 20 66 72 6f | 6d 20 74 68 65 20 72 65 |e ID fro|m the re|
|00005cc0| 63 6f 72 64 20 69 73 20 | 74 68 65 6e 20 72 65 67 |cord is |then reg|
|00005cd0| 69 73 74 65 72 65 64 20 | 69 6e 20 74 68 65 20 6f |istered |in the o|
|00005ce0| 62 6a 65 63 74 20 72 65 | 67 69 73 74 72 79 2e 0d |bject re|gistry..|
|00005cf0| 49 66 20 74 68 65 20 72 | 65 63 6f 72 64 20 69 6e |If the r|ecord in|
|00005d00| 64 69 63 61 74 65 73 20 | 74 68 65 20 6f 62 6a 65 |dicates |the obje|
|00005d10| 63 74 27 73 20 70 6f 69 | 6e 74 65 72 20 73 68 6f |ct's poi|nter sho|
|00005d20| 75 6c 64 20 62 65 20 66 | 6f 75 6e 64 20 69 6e 20 |uld be f|ound in |
|00005d30| 74 68 65 20 6f 62 6a 65 | 63 74 20 72 65 67 69 73 |the obje|ct regis|
|00005d40| 74 72 79 2c 20 74 68 65 | 20 49 44 20 66 72 6f 6d |try, the| ID from|
|00005d50| 20 74 68 65 20 72 65 63 | 6f 72 64 20 69 73 20 75 | the rec|ord is u|
|00005d60| 73 65 64 20 74 6f 20 6c | 6f 6f 6b 20 75 70 20 74 |sed to l|ook up t|
|00005d70| 68 65 20 6f 62 6a 65 63 | 74 27 73 20 70 6f 69 6e |he objec|t's poin|
|00005d80| 74 65 72 2e 0d 52 65 6c | 61 74 65 64 20 43 6c 61 |ter..Rel|ated Cla|
|00005d90| 73 73 65 73 0d 46 57 5f | 43 52 65 61 64 61 62 6c |sses.FW_|CReadabl|
|00005da0| 65 41 72 63 68 69 76 65 | 20 68 61 73 20 61 20 73 |eArchive| has a s|
|00005db0| 75 62 63 6c 61 73 73 20 | 6f 66 20 46 57 5f 43 42 |ubclass |of FW_CB|
|00005dc0| 61 73 69 63 4f 62 6a 65 | 63 74 2d 52 65 67 69 73 |asicObje|ct-Regis|
|00005dd0| 74 72 79 2e 0d 46 57 5f | 43 57 72 69 74 61 62 6c |try..FW_|CWritabl|
|00005de0| 65 41 72 63 68 69 76 65 | 20 68 61 73 20 61 20 73 |eArchive| has a s|
|00005df0| 75 62 63 6c 61 73 73 20 | 6f 66 20 46 57 5f 43 42 |ubclass |of FW_CB|
|00005e00| 61 73 69 63 4f 62 6a 65 | 63 74 2d 52 65 67 69 73 |asicObje|ct-Regis|
|00005e10| 74 72 79 2e 0d 46 57 5f | 43 42 61 73 69 63 42 61 |try..FW_|CBasicBa|
|00005e20| 73 69 63 4f 62 6a 65 63 | 74 52 65 67 69 73 74 72 |sicObjec|tRegistr|
|00005e30| 79 20 69 73 20 61 20 46 | 57 5f 43 42 61 73 69 63 |y is a F|W_CBasic|
|00005e40| 4f 62 6a 65 63 74 2d 52 | 65 67 69 73 74 72 79 2e |Object-R|egistry.|
|00005e50| 0d 53 75 62 63 6c 61 73 | 73 69 6e 67 20 46 57 5f |.Subclas|sing FW_|
|00005e60| 43 42 61 73 69 63 4f 62 | 6a 65 63 74 52 65 67 69 |CBasicOb|jectRegi|
|00005e70| 73 74 72 79 0d 54 79 70 | 69 63 61 6c 6c 79 2c 20 |stry.Typ|ically, |
|00005e80| 79 6f 75 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 6e |you shou|ld not n|
|00005e90| 65 65 64 20 74 6f 20 73 | 75 62 63 6c 61 73 73 20 |eed to s|ubclass |
|00005ea0| 74 68 69 73 20 63 6c 61 | 73 73 2e 20 42 79 20 64 |this cla|ss. By d|
|00005eb0| 65 66 61 75 6c 74 20 61 | 6e 20 69 6e 73 74 61 6e |efault a|n instan|
|00005ec0| 63 65 20 6f 66 20 46 57 | 5f 43 42 61 73 69 63 42 |ce of FW|_CBasicB|
|00005ed0| 61 73 69 63 4f 62 6a 65 | 63 74 52 65 67 69 73 74 |asicObje|ctRegist|
|00005ee0| 72 79 20 28 61 20 63 6f | 6e 63 72 65 74 65 20 73 |ry (a co|ncrete s|
|00005ef0| 75 62 63 6c 61 73 73 20 | 6f 66 20 74 68 69 73 20 |ubclass |of this |
|00005f00| 63 6c 61 73 73 29 20 69 | 73 20 74 72 61 6e 73 70 |class) i|s transp|
|00005f10| 61 72 65 6e 74 6c 79 20 | 63 72 65 61 74 65 64 20 |arently |created |
|00005f20| 66 6f 72 20 79 6f 75 20 | 61 74 20 74 68 65 20 61 |for you |at the a|
|00005f30| 70 70 72 6f 70 72 69 61 | 74 65 20 74 69 6d 65 73 |ppropria|te times|
|00005f40| 2e 0d 4f 76 65 72 72 69 | 64 69 6e 67 20 4d 65 74 |..Overri|ding Met|
|00005f50| 68 6f 64 73 0d 49 66 20 | 79 6f 75 20 6f 76 65 72 |hods.If |you over|
|00005f60| 72 69 64 65 20 74 68 69 | 73 20 63 6c 61 73 73 2c |ride thi|s class,|
|00005f70| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 20 6f 76 65 | you nee|d to ove|
|00005f80| 72 72 69 64 65 20 61 6c | 6c 20 61 62 73 74 72 61 |rride al|l abstra|
|00005f90| 63 74 20 6d 65 74 68 6f | 64 73 2e 0d 49 6e 73 74 |ct metho|ds..Inst|
|00005fa0| 61 6e 74 69 61 74 69 6e | 67 20 46 57 5f 43 42 61 |antiatin|g FW_CBa|
|00005fb0| 73 69 63 4f 62 6a 65 63 | 74 52 65 67 69 73 74 72 |sicObjec|tRegistr|
|00005fc0| 79 0d 54 68 69 73 20 63 | 6c 61 73 73 20 69 73 20 |y.This c|lass is |
|00005fd0| 6e 6f 74 20 75 73 75 61 | 6c 6c 79 20 69 6e 73 74 |not usua|lly inst|
|00005fe0| 61 6e 74 69 61 74 65 64 | 2e 0d 52 65 61 64 61 62 |antiated|..Readab|
|00005ff0| 6c 65 20 61 6e 64 20 77 | 72 69 74 61 62 6c 65 20 |le and w|ritable |
|00006000| 61 72 63 68 69 76 65 20 | 63 6f 6e 73 74 72 75 63 |archive |construc|
|00006010| 74 6f 72 73 20 74 61 6b | 65 20 61 20 70 6f 69 6e |tors tak|e a poin|
|00006020| 74 65 72 20 74 6f 20 61 | 6e 20 6f 62 6a 65 63 74 |ter to a|n object|
|00006030| 20 72 65 67 69 73 74 72 | 79 2e 20 54 68 65 20 69 | registr|y. The i|
|00006040| 6e 74 65 72 66 61 63 65 | 73 20 66 6f 72 20 62 6f |nterface|s for bo|
|00006050| 74 68 20 63 6f 6e 73 74 | 72 75 63 74 6f 72 73 20 |th const|ructors |
|00006060| 70 72 6f 76 69 64 65 20 | 61 20 64 65 66 61 75 6c |provide |a defaul|
|00006070| 74 20 76 61 6c 75 65 20 | 6f 66 20 30 20 28 74 68 |t value |of 0 (th|
|00006080| 65 20 6e 75 6c 6c 20 70 | 6f 69 6e 74 65 72 29 20 |e null p|ointer) |
|00006090| 66 6f 72 20 74 68 69 73 | 20 70 61 72 61 6d 65 74 |for this| paramet|
|000060a0| 65 72 2e 20 41 20 6e 75 | 6c 6c 20 70 6f 69 6e 74 |er. A nu|ll point|
|000060b0| 65 72 20 72 65 73 75 6c | 74 73 20 69 6e 20 74 68 |er resul|ts in th|
|000060c0| 65 20 63 6f 6e 73 74 72 | 75 63 74 6f 72 73 20 63 |e constr|uctors c|
|000060d0| 72 65 61 74 69 6e 67 20 | 61 6e 20 69 6e 73 74 61 |reating |an insta|
|000060e0| 6e 63 65 20 6f 66 20 46 | 57 5f 43 42 61 73 69 63 |nce of F|W_CBasic|
|000060f0| 42 61 73 69 63 2d 4f 62 | 6a 65 63 74 52 65 67 69 |Basic-Ob|jectRegi|
|00006100| 73 74 72 79 2e 0d 46 57 | 5f 43 42 61 73 69 63 4f |stry..FW|_CBasicO|
|00006110| 62 6a 65 63 74 52 65 67 | 69 73 74 72 79 20 4d 65 |bjectReg|istry Me|
|00006120| 74 68 6f 64 73 0d 0d 46 | 57 5f 43 42 61 73 69 63 |thods..F|W_CBasic|
|00006130| 4f 62 6a 65 63 74 52 65 | 67 69 73 74 72 79 28 29 |ObjectRe|gistry()|
|00006140| 3b 0d 0d 44 65 66 61 75 | 6c 74 20 63 6f 6e 73 74 |;..Defau|lt const|
|00006150| 72 75 63 74 6f 72 2e 0d | 0d 76 69 72 74 75 61 6c |ructor..|.virtual|
|00006160| 20 7e 46 57 5f 43 42 61 | 73 69 63 4f 62 6a 65 63 | ~FW_CBa|sicObjec|
|00006170| 74 52 65 67 69 73 74 72 | 79 28 29 3b 0d 0d 43 6c |tRegistr|y();..Cl|
|00006180| 61 73 73 20 64 65 73 74 | 72 75 63 74 6f 72 2e 0d |ass dest|ructor..|
|00006190| 0d 76 69 72 74 75 61 6c | 20 49 44 20 52 65 67 69 |.virtual| ID Regi|
|000061a0| 73 74 65 72 28 63 6f 6e | 73 74 20 76 6f 69 64 20 |ster(con|st void |
|000061b0| 2a 6f 62 6a 65 63 74 29 | 3b 0d 0d 52 65 67 69 73 |*object)|;..Regis|
|000061c0| 74 65 72 73 20 61 6e 20 | 6f 62 6a 65 63 74 20 61 |ters an |object a|
|000061d0| 6e 64 20 72 65 74 75 72 | 6e 73 20 69 74 73 20 49 |nd retur|ns its I|
|000061e0| 44 2e 0d 0d 76 69 72 74 | 75 61 6c 20 76 6f 69 64 |D...virt|ual void|
|000061f0| 20 52 65 67 69 73 74 65 | 72 28 63 6f 6e 73 74 20 | Registe|r(const |
|00006200| 76 6f 69 64 20 2a 6f 62 | 6a 65 63 74 2c 0d 09 09 |void *ob|ject,...|
|00006210| 09 09 09 09 09 20 46 57 | 5f 43 4f 62 6a 65 63 74 |..... FW|_CObject|
|00006220| 52 65 67 69 73 74 72 79 | 3a 3a 49 44 20 69 64 29 |Registry|::ID id)|
|00006230| 3b 0d 0d 52 65 67 69 73 | 74 65 72 73 20 61 6e 20 |;..Regis|ters an |
|00006240| 6f 62 6a 65 63 74 20 74 | 6f 20 61 20 70 61 72 74 |object t|o a part|
|00006250| 69 63 75 6c 61 72 20 49 | 44 0d 0d 76 69 72 74 75 |icular I|D..virtu|
|00006260| 61 6c 20 49 44 20 4c 6f | 6f 6b 75 70 20 28 63 6f |al ID Lo|okup (co|
|00006270| 6e 73 74 20 76 6f 69 64 | 20 2a 6f 62 6a 65 63 74 |nst void| *object|
|00006280| 29 3b 0d 0d 46 69 6e 64 | 73 20 61 6e 20 6f 62 6a |);..Find|s an obj|
|00006290| 65 63 74 20 69 6e 20 74 | 68 65 20 72 65 67 69 73 |ect in t|he regis|
|000062a0| 74 72 79 20 6f 72 20 72 | 65 74 75 72 6e 73 20 6b |try or r|eturns k|
|000062b0| 4e 6f 6e 49 6e 52 65 67 | 69 73 74 72 79 20 69 66 |NonInReg|istry if|
|000062c0| 20 74 68 65 20 6f 62 6a | 65 63 74 20 69 73 20 6e | the obj|ect is n|
|000062d0| 6f 74 20 66 6f 75 6e 64 | 2e 0d 0d 76 69 72 74 75 |ot found|...virtu|
|000062e0| 61 6c 20 63 6f 6e 73 74 | 20 76 6f 69 64 2a 20 4c |al const| void* L|
|000062f0| 6f 6f 6b 75 70 28 0d 09 | 09 09 09 09 09 09 46 57 |ookup(..|......FW|
|00006300| 5f 43 4f 62 6a 65 63 74 | 52 65 67 69 73 74 72 79 |_CObject|Registry|
|00006310| 3a 3a 49 44 20 69 64 29 | 3b 0d 0d 46 69 6e 64 73 |::ID id)|;..Finds|
|00006320| 20 61 6e 20 6f 62 6a 65 | 63 74 20 62 79 20 49 44 | an obje|ct by ID|
|00006330| 2c 20 72 65 74 75 72 6e | 73 20 69 74 73 20 70 6f |, return|s its po|
|00006340| 69 6e 74 65 72 2e 0d 52 | 65 74 75 72 6e 73 20 30 |inter..R|eturns 0|
|00006350| 20 69 66 20 69 64 20 69 | 73 20 6e 6f 74 20 69 6e | if id i|s not in|
|00006360| 20 74 68 65 20 72 65 67 | 69 73 74 72 79 2e 0d 46 | the reg|istry..F|
|00006370| 57 5f 43 44 79 6e 61 6d | 69 63 41 72 63 68 69 76 |W_CDynam|icArchiv|
|00006380| 65 72 20 63 6c 61 73 73 | 0d 49 6e 74 72 6f 64 75 |er class|.Introdu|
|00006390| 63 74 69 6f 6e 0d 46 57 | 5f 43 44 79 6e 61 6d 69 |ction.FW|_CDynami|
|000063a0| 63 41 72 63 68 69 76 65 | 72 20 69 73 20 61 20 67 |cArchive|r is a g|
|000063b0| 72 6f 75 70 20 6f 66 20 | 73 74 61 74 69 63 20 6d |roup of |static m|
|000063c0| 65 74 68 6f 64 73 20 61 | 6e 64 20 73 74 61 74 69 |ethods a|nd stati|
|000063d0| 63 20 64 61 74 61 20 74 | 68 61 74 20 74 6f 67 65 |c data t|hat toge|
|000063e0| 74 68 65 72 20 73 75 70 | 70 6f 72 74 20 74 68 65 |ther sup|port the|
|000063f0| 20 61 72 63 68 69 76 69 | 6e 67 20 6f 66 20 64 79 | archivi|ng of dy|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.